File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Path, classpath issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Path, classpath issue" Watch "Path, classpath issue" New topic

Path, classpath issue

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275

I am trying to connect to informatica server from Java using Load Manager SDK provided by informatica. There are JAR files such as JlmApi.jar which has dependency on few DLL files.
I wrote 1 standalone Java class using Eclipse IDE and running it in eclipse using Run As > Java Application. I have kept DLLs in the 1 folder under C:\ and have put this in System PATH. And all the required JAR files in lib folder and added them in Java Build path in eclipse. This works fine and connects to the Informatica server and bring me the required details.

Now i have a requirement where i have a Struts application and on click of button it should make informatica connection and bring the required details. For this i've created TOMCAT project in Eclipse and have put all required JARs in WEB-INF/lib folder and DLLs in C:\ and this folder is in PATH. When i click on the button, its able to connect to informatica server but after connection, when it tries to login to the server, its not able to do so and throws this error:
java.lang.UnsatisfiedLinkError: com.informatica.powercenter.sdk.lm.JLMConnection10.nativeLogin(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;Lcom/informatica/powercenter/sdk/lm/Result;)V

Please let me know if i need to change anything from Java Standalone application to TOMCAT web application.

jQuery in Action, 3rd edition
subject: Path, classpath issue
It's not a secret anymore!