1
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();

i want to use usb Host communicating with smart card on android pad

but why do i get java.lang.NoClassDefFoundError: javax.smartcardio.TerminalFactory

i already import......

and i don't know how to package this lib into app

1 Answers1

0

When you did the development the required jar which contains

javax.smartcardio.TerminalFactory

is in the classpath.

But when you did installation/deployment/packaging, did you ensure that the required jar is also packaged along with app.

Himanshu Bhardwaj
  • 4,038
  • 3
  • 17
  • 36