How to import jar files to webmethods?

Hi Mustafa,

please open a new thread for your questions and provide more details.

Regards,
Holger

I have json-smart-1.1.1.jar in my \SoftwareAG\IntegrationServer\lib\jars folder. However, when I type “import net.” in my java service, it does not see the jar file. What am I doing wrong?

Hi Brandon,

Designer is not aware of the jars available in the IntegrationServer.

Either import the jar to your workspace additionally or you just have to know the exact name of the classes you want to import in your service.

Regards,
Holger

Hey Wang,
I cant find folder called code in packages folder.
Do I need to create a folder called code and then place the jar inside that folder?

Thx

Hi Sufran,

as pointed out above already there are two locations for placing jars:
Either under IntegrationServer/instances//lib/jars/custom or under IntegrationServer/instances//packages//code/jars.
For the second location, when the jar has a native part, the jar needs to go under the static subdirectory.

Jars under lib/jars/custom and under code/jars/static require a restart of IS to get loaded, but jars under code/jars only require a reload of the package.

The mentioned folders should exist by default.

Regards,
Holger

Hey Holger,

This path worked
C:\SoftwareAG\IntegrationServer\lib\jars\custom

The only problem there is always this sign image

and on project in Java project itself has this image

But the code is compiling.
So to fix this i have to set the Jar in Java Build Path manually to have the error go away.
image

Thx.

1 Like

Hi Sufran,

are you using Local Service Development or are you compiling on a remote development server?

Depending on wM version you will have to add an instance/default path segment between IntegrationServer and lib/…, as IS is able to host more than one instance since wM 9.6, which caused a slight change where the real class loading takes place.

Regards,
Holger

Hey Holger,

That is on my local. Thx

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.