Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.UnsatisfiedLinkError although java.library.path is set

843829Oct 12 2005 — edited Sep 23 2009
HI ALL,

here comes another silly java.lang.UnsatisfiedLinkError, but I can not find the problem ...

I've got this little (test) class:
public class Jd2xxTest {
	public static void main(String[] args) {
		System.out.println("java.library.path="+System.getProperty("java.library.path")); 	
		System.loadLibrary("ftd2xx.dll");
	}
}
... and I am getting this output:
java.library.path=D:\Projects\elb\lib\ftd2xx
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ftd2xx.dll in java.library.path
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at de.elb.dido.Jd2xxTest.main(Jd2xxTest.java:16)
but the ftd2xx.dll is definitely in the given path:
 Verzeichnis von D:\Projects\elb\lib\ftd2xx
12.10.2005  13:27    <DIR>          .
12.10.2005  13:27    <DIR>          ..
15.10.2004  16:52             2.025 D2XX Release Info.txt
23.09.2004  16:34            48.128 D2XX_EX.doc
23.03.2005  14:35            81.920 ftd2xx.dll
23.03.2005  12:05            18.029 FTD2XX.H
15.10.2004  16:51             2.638 ftd2xx.inf
23.03.2005  09:32            17.706 FTD2XX.lib
15.10.2004  16:49            29.292 FTD2XX.sys
23.09.2004  16:31                71 FTD2XXUN.INI
01.09.2004  15:50           421.376 FTDIUNIN.EXE
              10 Datei(en)        621.185 Bytes
               2 Verzeichnis(se), 19.794.518.016 Bytes frei
--- Sorry, it's German, but I think you get the point!!! ---

I am working on winXPand Java5.

WHO CAN HELP???
Thanks in advance!!!
Anja
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2009
Added on Oct 12 2005
21 comments
2,267 views