Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » java.library.path settings when running an SWT application
java.library.path settings when running an SWT application [message #29439] Sun, 05 February 2006 00:31 Go to next message
Eclipse UserFriend
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
Re: java.library.path settings when running an SWT application [message #29475 is a reply to message #29439] Sun, 05 February 2006 01:26 Go to previous message
Eclipse UserFriend
Originally posted by: zx.us.ibm.com

Please don't cross post.

Your question should be directed at the SWT newsgroup.
Previous Topic:display window for multiple threads
Next Topic:REMINDER: Earyl Bird Registration Deadline is Feb. 14
Goto Forum:
  


Current Time: Thu Apr 25 18:15:42 GMT 2024

Powered by FUDForum. Page generated in 0.02522 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top