How to use custom .JAR Mid server packages?

Rushit Patel2
Tera Guru

Hi all,

i uploaded my custom jar as per this page MID Server - ServiceNow Wiki   but it doesnot say how to use it. can any one help?

The jar is uploaded to the extlib folder using the JAR Files module. When I call the methods in the package using the Javascript Probe, I get the output in the ECC queue as :

TypeError: [JavaPackage org.demo.test] is not a function.

However, when I place the jar in the lib folder and invoke the package call using the Javascript Probe, I get the proper results in the ECC queue.

Can you please help me what needs to be done to make the packages call work for the jar placed in extlib folder ?

12 REPLIES 12

adriantan08
Giga Expert
I tried this tutorial but it's complaining that a, certain mid server script include (matching the name of the probe) was not found..

RB13
Tera Guru

Hi Rushit,,

Did you get this resolve?

I am also facing the same issue.

Could you please share the resolutions steps for this.