• Post Reply Bookmark Topic Watch Topic
  • New Topic

load jpcsc library fails  RSS feed

 
Guy Van Iseghem
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an urgent question.
I'm currently using the jpcsc library(from IBM) needed to communicate with a smartcard. Although when I execute the following line
Runtime.getRuntime().loadLibrary(PCSC.pcscNativeLibName);

gives the exception:
java.lang.UnsatisfiedLinkError: no jpcsc in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.Runtime.loadLibrary(Unknown Source)
at com.linuxnet.jpcsc.PCSC.<clinit>(PCSC.java:136)
at com.linuxnet.jpcsc.Context.<clinit>(Context.java:21)
at be.godot.sc.engine.SmartCardReader.lookForSmartCard(SmartCardReader.java:72)
at be.godot.sc.engine.EidCard.lookForSmartCard(EidCard.java:618)
at be.godot.sc.engine.EidCard.lookForSmartCard(EidCard.java:607)
at be.godot.sc.engine.EidCard.getAuthenticationCertificate(EidCard.java:74)
at dsoft.D2S.sign.eid.EidSigner.getAuthenticationCertificate(EidSigner.java:52)
at com.dsoft.client.pref.CertificatePanel.fillCertificateFromEIDStore(CertificatePanel.java:430)
at com.dsoft.client.pref.CertificatePanel.access$9(CertificatePanel.java:427)
at com.dsoft.client.pref.CertificatePanel$3.actionPerformed(CertificatePanel.java:263)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at com.dsoft.client.D2SApplet.openPreferencePanel(D2SApplet.java:486)
at com.dsoft.client.D2SApplet.access$2(D2SApplet.java:485)
at com.dsoft.client.D2SApplet$10.actionPerformed(D2SApplet.java:427)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Please does anyone knows how I could solve this problem?

Thanks in advance!

Guy
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This line in the exception tells the whole story:

The system is trying to load a library named jpcsc, presumably one that the smart card reader uses, and it cannot be found. Locate it and set the system property java.library.path to point to the directory where it resides.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!