Re: [Smartsign-users] JMuscleCard Question!
Status: Pre-Alpha
Brought to you by:
kefren
From: Tommaso C. <cuc...@ss...> - 2005-03-31 17:03:17
|
Li Yao wrote: > Hello everyone, Hi, as far as I can remember, it is not enough that ldd finds the libraries. Maybe you have to tell the Java interpreter where to find them (I see you installed libJMuscleCard.so in a place where Java will find it for sure, what about libpcsclite.so ?). Check JNI docs, please. I'll be back at my office next week to check this problem, in the meantime you could just provide the OS type and version you're using, just in case it might be useful. Tommaso. -- Tommaso Cucinotta Computer Engineer PhD Scuola Superiore San'Anna Pisa, Italy > I'm currently doing a project related to MuscleCard and trying to use > JMuscleCard. I successfully compiled and installed the package. > However when I tried the test application, the 'UnsatisfiedLinkError' > runtime error occured: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > /usr/java/j2sdk1.4.2_05/jre/lib/i386/libJMuscleCard.so: > /usr/java/j2sdk1.4.2_05/jre/lib/i386/libJMuscleCard.so: undefined > symbol: MSCListTokens > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > at JMuscleCard.JMuscleCard.<clinit>(JMuscleCard.java:407) > at JMuscleCard.Test.main(Test.java:1128) > > I'm using pcsclite1.2.9beta 6, and I've tried pcsclite 1.2.0, it still > doesn't work. I also run ldconfig for those libraries: > root-Programs-) ldd /usr/local/lib/libpcsclite.so > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00305000) > libc.so.6 => /lib/tls/libc.so.6 (0x00111000) > /lib/ld-linux.so.2 (0x00a76000) > root-Programs-) ldd /usr/local/lib/libJMuscleCard.so > libpcsclite.so.1 => /usr/local/lib/libpcsclite.so.1 (0x007ef000) > libc.so.6 => /lib/tls/libc.so.6 (0x00375000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00918000) > /lib/ld-linux.so.2 (0x00a76000) > root-Programs-) ldd /usr/local/lib/libpcsclite.so.1 > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d5f000) > libc.so.6 => /lib/tls/libc.so.6 (0x0054b000) > /lib/ld-linux.so.2 (0x00a76000) > my jdk is 1.4.2 > > I would be very grateful if you could give me some advice, thank you in advance. > > Li > > > ------------------------------------------------------- > This SF.net email is sponsored by Demarc: > A global provider of Threat Management Solutions. > Download our HomeAdmin security software for free today! > http://www.demarc.com/info/Sentarus/hamr30 > _______________________________________________ > Smartsign-users mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartsign-users |