File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.library.path problem

 
Brian Nice
Ranch Hand
Posts: 195
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a dll library that needs to be used from within a servlet. When I look at my systems properties, it says that the java.library.path is my JAVA_HOME/bin and WINNT/SYSTEM32 directories. I have placed my dll in these directories, and when i start tomcat and call my servlet i get the following error:
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC
no jRFC12 in java.library.path
I edited catalina.bat and added the following property on the startup of tomcat -Djava.library.path=d:/j2sdk1.4.0/bin to try and set it manually, but that did not help either.
What can I do to get my servlet to be able to use that library?
Thanks
Brian
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic