【发布时间】:2014-10-10 03:26:17
【问题描述】:
import javax.smartcardio.Card;
import javax.smartcardio.CardChannel;
import javax.smartcardio.CardException;
import javax.smartcardio.CardTerminal;
import javax.smartcardio.CommandAPDU;
import javax.smartcardio.ResponseAPDU;
import javax.smartcardio.TerminalFactory;
TerminalFactory terminalFactory = TerminalFactory.getDefault();
我想使用usb Host与android pad上的智能卡通信
但是为什么我得到 java.lang.NoClassDefFoundError: javax.smartcardio.TerminalFactory
我已经导入了……
我不知道如何将这个库打包到应用程序中
【问题讨论】:
-
你能和我们分享你的运行时间吗?您可能使用的是较旧的 64 位运行时。
smartcardio在javax树中,这意味着它是一个可选包。不需要 JRE 来实现它。 -
我可以在java项目上运行,但是android项目不能在我的pad/手机上运行
标签: java android usb shared-libraries smartcard