Re: [Smartsign-users] JMuscleCard Question!
Status: Pre-Alpha
Brought to you by:
kefren
|
From: Li Y. <li....@gm...> - 2005-03-31 18:56:39
|
Hi Tommaso
Thank you for your reply.
I'm using Fedora Core 3 kernal v2.6.10-1.770_FC3
I have checked the JNI docs, and according to it, Java in linux: The
LD_LIBRARY_PATH environment variable defines a list of directories
that the VM searches for shared libraries. I've set the
LD_LIBRARY_PATH to include /usr/local/lib which the JMuscleCard and
pcsclite shared libraries reside. And deleted the 'libJMuscleCard.so'
and 'libJMSCTokenConnection.so ' in java/j2sdk1.4.2_05/jre/lib/i386.
But the error still appears:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/local/lib/libJMuscleCard.so: /usr/local/lib/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:1511)
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 reinstalled pcsclite 1.2.9beta 7, and after installed it, when I run
ldconfig, it said the libpcsclite.so.1 is not a symbolic link. (beta6
didn't not have this warning.)
root-Programs-) ldconfig
ldconfig: /usr/local/lib/libpcsclite.so.1 is not a symbolic link
I'm not sure whether this would be a problem.
Thanks again for your help.
Li
On Thu, 31 Mar 2005 19:04:13 +0200, Tommaso Cucinotta
<cuc...@ss...> wrote:
> 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
>
>
|