java.library.path settings when running an SWT application [message #29439] |
Sat, 04 February 2006 19:31  |
Eclipse User |
|
|
|
Originally posted by: az1.sbcglobal.net
I'm an Eclipse newbie, so please be lenient, if hte question is
obvious/stupid/does not belong here.
I'm working on a little Windows application, which uses SWT for GUI and a
third-party native Java drivers (1wire drivers from Maxim / Dallas Semi:
http://www.maxim-ic.com/products/ibutton/software/tmex/). The application
without the SWT runs just fine, as does the SWT part without the 1wire part.
When I run the application (with both SWT and 1wire) under Eclipse, I get:
Native drivers not found, download iButton-TMEX RTE Win32 from
www.ibutton.com
So I investigate, and find out that the java.library.path is set to the
Eclipse cache, which holds the SWT
DLLs:(E:\eclipse\WS\.metadata\.plugins\org.eclipse.ve.java.c ore\.cache\.libCache\-792275406).
No attempts to fix the problem help: I copied all the necessary DLLs to the
cache where the SWT DLLs are; I tried to add -Djava.library.path variable
to the VM arguments - no luck at all: the call to
System.loadLibrary("ibtmjava.dll");
results in:
java.lang.UnsatisfiedLinkError: no ibtmjava.dll in java.library.path
--this despite teh fact that the ibtmjava.dll is right there in the
directory pointed to by the java.library.path property.
When I run a non-SWT application, the java.library.path is my %PATH%
variable, prepended by %JAVA_HOME%\bin, and the drivers are found without
any problem. But when I try to set the VM argument to:
-Djava.library.path=E:\eclipse\WS\.metadata\.plugins\org.ecl ipse.ve.java.core\.cache\.libCache\-792275406;C:\j2sdk1.4.2_ 08\bin;.;C:\WINDOWS\system32
- the System.loadLibrary still fails
What gives???
TIA,
--az
|
|
|
|
Powered by
FUDForum. Page generated in 0.07805 seconds