ahsin01

updated

14 years ago

A

ahsin01

2 Posts

0

1081

June 28th, 2012 13:00

native library question for Java program

Did anyone run testing java program from eclipse sucessfully before?  My delima was I have to put those native FP*.dll into C:\windows\system32, so the test cases will be able to run in Eclipse.  Otherwise, I tried to put those dll at the same location as FPLibrary.jar Or add VM argument as -Djava.library.path Or change native library location in FPLibrary.jar, I would get unsatisfiedLinkError all the time.

Any insights would be greatly appreciated.


  • mfh2

    1 Rookie

    •

    208 Posts

    450

    0

    Posted June 28th, 2012 13:00

    Hello ahsin -

    I set the PATH variable (in Windows; LD_LIBRARY_PATH in Linux) in the Environment tab of my Eclipse Debug/Run configuration to include the path to the native libs and Bob's your uncle!

    Good Luck,

    Mike Horgan