facebook

[Closed]Native libs not found using Tomcat in Debug Mode

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #246284 Reply

    NotesSensei
    Member

    Hi there,

    I ran into an issue I can’t explain. I have a servlet that is using a jar that contains a native call (Notes.jar of Lotus Domino to be precise). The called DLL is in my system path. When I run the servlet on Tomcat running as a windows service it works fine without any problem (other than my poor Java coding, but that’s a different story 🙁 ).
    When I run Tomcat from inside Eclipse (to debug my code) I get an Unsatisfied link error complaining that the DLL was not found.
    What do I need to do, so Tomcat in Eclipse/Debug behaves similar to Tomcat as service?
    🙂 stw

    #246287 Reply

    Haris Peco
    Member

    try set java.library.path to directory where are DLLs
    (-Djava.library.path=YOUR_PATH in Windows-Prefereces-TomcatX-JDK-Optional VM arguments)

    #246291 Reply

    NotesSensei
    Member

    I got it working. Seems like Tomcat started out of Eclipse is ignoring the Windows Path. You have to go to
    Windows-Preferences-MyEclipse-Application Servers-Tomcat 5-Path
    There add the directory with the libraries to “Append to library path”

    Btw: If you intend to run multiple apps with this library you must move the jar that calls the lib to {tomcat-root}/common/lib

    Thx for helping
    🙂 stw

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed]Native libs not found using Tomcat in Debug Mode

You must be logged in to post in the forum log in