problem with java.library.path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aaron Boxer

    problem with java.library.path

    Hello,

    I am working with JDK 1.4.2 on windows 2000.

    I have a JNI dll in the folder c:\src\bin

    So, I make the following call:

    java -classpath MyClassPath -Djava.library.p ath=c:\src\bin MyApp.app

    But, the directory is ignored. and I get an Unsatisfied link error.

    If I put "c:\src\bin " in the PATH, then everything is fine.


    Any ideas?

    Thanks.

    Aaron Boxer



  • Anthony Borla

    #2
    Re: problem with java.library.pa th

    Aaron,

    "Aaron Boxer" <[email protected]> wrote in message
    news:AsOob.1255 3$Nz5.576450@ne ws20.bellglobal .com...[color=blue]
    > Hello,
    >
    > I am working with JDK 1.4.2 on windows 2000.
    >
    > I have a JNI dll in the folder c:\src\bin
    >
    > So, I make the following call:
    >
    > java -classpath MyClassPath -Djava.library.p ath=c:\src\bin
    > MyApp.app
    >
    > But, the directory is ignored. and I get an Unsatisfied link error.
    >
    > If I put "c:\src\bin " in the PATH, then everything is fine.
    >[/color]

    Under Windows-family OS '.dll' file location needs to be specified in the
    PATH environment variable in ordr for the JVM to locate it [load it using
    'System.loadLib rary']. I'm fairly sure this is as things should be :) !

    I hope this helps.

    Anthony Borla


    Comment

    Working...