Assuming you have properly imported the library to your java service and reloaded the package you added this jar file to and created a dependency properly if you put in to a different package then the package you are hosting the java service.
Does it compile when you make changes to the java service and save it? Or does it generate an exception?
Integration Server and Designer use java compiler and libraries differently. You don't need designer to run or compile java services. Integration Server uses the JDK comes with the installation as default, but it can be changed. Review the extended setting in the picture below. The default setting should work but if it is changed to something that doesn't exist or not reachable it won't compile. Check the document below for more info.
watt.server extended settings
If the compiler path doesn't have the full path of the JVM and when you run javac command at the server you run the IS from anywhere in terminal doesn't find the java compiler, you need to add that java path to the environment path so that it will find it from everywhere, or add that full(or relative path, but it will be more difficult to build) to the watt.server.compile
setting. Basically if it doesn't find javac
, it should be able to find {full path to jdk}/javac
command.
Importing the JAR file to the designer is the same as importing a JAR file to the eclipse. This will only make it recognize the java library functions and clear the false "not found" errors.
If the server compiles after making a small change (like adding a white space somewhere) try running the service using admin UI or run it from browser.
------------------------------
engin sarlak
------------------------------
Original Message:
Sent: Thu December 05, 2024 04:02 AM
From: DONGWOO LEE
Subject: Please tell me how to add jar file in webMethods
hello
To use POI in a web method, I added a jar file to the directory identified in the topic.
Currently, if i run debug using TestHarness.java, the Excel file is generated well.
However, if i run the Java service directly, an error occurs.
Please let me know what I'm missing.
I am sharing the error message below and an image of the jar file I added.
------------------------------
DONGWOO LEE
------------------------------