Hi Carl,

for your problem is you run the java I guess, the primary solution in the
different class folder/directory; you should run java (and follow with your
class file) in the same folder/directory.

If it is work, another suggestion is check your configuration and library
file that you use in your system.

Please let me know your progress,

Thank you,

Arief Hamdani Gunawan


-----Original Message-----
From: Carl Youngblood [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 6:18 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [OCF] Problem loading the right terminal class

Steven Ihde wrote:

>strace java [...whatever...] 2>&1 | grep -E 'stat|open'
>  
>
This technique worked well.  I got a little farther.  I got it to find 
pcsc-wrapper-src.jar and also found out which opencard.properties file 
was being used. Now I'm getting an error related to the OCF-PCSC 
bridge.  Here's what I get:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no OCFPCSC1 
in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at 
opencard.core.util.SystemAccess.loadLibrary(SystemAccess.java:111)
        at 
com.ibm.opencard.terminal.pcsc10.OCFPCSC1.loadLib(OCFPCSC1.java:64)
        at 
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.open(Pcsc10CardTe
rminalFactory.java:94)
        at 
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.<init>(Pcsc10Card
TerminalFactory.java:65)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at 
opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java:
424)
        at 
opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java:261
)
        at opencard.core.service.SmartCard.start(SmartCard.java:534)
        at com.gemplus.tools.gemxpresso.pilot.ServicePilot.open(Unknown 
Source)
        at 
com.gemplus.tools.gemxpresso.pilot.ServicePilot.<init>(Unknown Source)
        at 
com.gemplus.tools.gemxpresso.pilot.TraceCmdTargetJPanel.initServicePilot(Unk
nown 
Source)
        at 
com.gemplus.tools.gemxpresso.pilot.TraceCmdTargetJPanel.<init>(Unknown 
Source)
        at 
com.gemplus.tools.gemxpresso.pilot.JCardManagerJFrame.<init>(Unknown Source)
        at 
com.gemplus.tools.gemxpresso.pilot.JCardManagerJFrame.main(Unknown Source)

After seeing this error, I tried building the OCFPCSC1 project from 
http://www.linuxnet.com/middleware/files/OCFPCSC1-0.0.1.tar.gz and 
copying to .so file into the place it was being looked for 
(JAVA_HOME/jre/lib/i386).  After doing that it had a different error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/usr/java/j2sdk1.4.2_04/jre/lib/i386/libOCFPCSC1.so: 
/usr/java/j2sdk1.4.2_04/jre/lib/i386/libOCFPCSC1.so: undefined symbol: 
__gxx_personality_v0
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
    [...]

It seems like it's expecting a different version of the library or 
something.  Any suggestions?

Thanks,

Carl Youngblood


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to