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 !

[1236 byte] By [SamaeLa] at [2007-11-26 19:00:53]
# 1
> I'm writing an application that connects to an card reader with an APDUConnection. The application isn't a Midlet, Wait - if it isn't a Midlet (target platform J2ME, uses the MIDP profile) what is it then?
JPJavaa at 2007-7-9 20:43:54 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
I want to comunicate a PC with a usb card reader, and, in the future, a set top box for digiral television with its card reader.Is it posible or I am wrong..?
SamaeLa at 2007-7-9 20:43:54 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

> I want to comunicate a PC with a usb card reader, and, in the future, a set top box for digiral television with its card reader.

> Is it posible or I am wrong..?

It may be possible but as the PC is not the native J2ME environment you should or may be even have to use emulators.

Second you should check whether the targeted set top box supports SATSA. If there is no native SATSA support things are getting complicated. In the cell phone environment this is usually the end as current cells have to support SATSA natively - it can not be upgraded.

I don't have any experience if this is also true for set top boxes.

JPJavaa at 2007-7-9 20:43:54 > top of Java-index,Java Mobility Forums,Consumer and Commerce...