How to use SATSA without Midlets
Hi.
I'm writing an application that connects to an card reader with an APDUConnection. The application isn't a Midlet, and It gets me the following errors:
Exception in thread "main" java.lang.UnsatisfiedLinkError: isNetworkMonitorActive
at javax.microedition.io.Connector.isNetworkMonitorActive(Native Method)
at javax.microedition.io.Connector.<clinit>(Connector.java:153)
I have included "cldcapi11.jar" and "satsa-apdu.jar" and it compiles.
My code is the following:
import javax.microedition.io.Connector;
import javax.microedition.apdu.APDUConnection;
public class CardCom {
public static void main(String[] args) {
APDUConnection walletConnection;
final String walletSlot = "apdu:0;target:SAT";
try{
//System.loadLibrary("zayit");
//System.loadLibrary("sublime");
if (System.getProperty("microedition.smartcardslots") == null)
{
walletConnection = (APDUConnection)Connector.open(walletSlot);
walletConnection.close();
}
}
catch (Exception e) {System.out.println("Exception"); }
}
}
How can I configure my Eclipse (which libraries) for compiling it?
Thanks !

