JCOP and wireless toolkit communications

Hi,
I have used the javacard toolkit with the wireless toolkit and I have made APDU connections and communications correctly.
Now I have JCOP from IBM and I want to test my midlet with this emulator but my midlet cannot connect itself to the JCOP emulator.
I have test the differrents port for connections (8050 for JCOP).
can anyone help me please ?
Thank's

Hello,
This the code I'm using with in my midlet:
RemoteJCTerminal terminal = new RemoteJCTerminal();
terminal.init(null);
terminal.open();
JCard card= new JCard(terminal, null, 10000);
JCApplet app = new JCApplet(card, AID);
app.select();...
The error log is :
java.lang.NoClassDefFoundError: com/ibm/jc/JCTerminal
     at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
     at com.sun.midp.midlet.Scheduler.schedule(+52)
     at com.sun.midp.main.Main.runLocalClass(+28)
     at com.sun.midp.main.Main.main(+116)
I think that the preverifier of my midlet doesn't accept my jar file in my build path.

Similar Messages

  • Synchronous calls with axis and wireless toolkit

    This isn't work.....
                   resultado = stub.Echco("a string...");
    System.out.println(resultado);
    stub doesn't wait to the result and resultado doesn't change.
    PD: how to search in this forums?
    Edited by: lone_wolf77 on Jan 7, 2010 1:46 AM

    wtk doesn't provide profiler interface. You have to use built-in wtk profiler.

  • Forte and wireless toolkit

    dear all
    i am freshmen in j2me , is anyone can teach me how to confie forte to work with wirless tookit to compile a helloworld program
    Many Thanks in advance

    Hi,
    get and install Sun Java Studio Mobility. Then from Help menu choose examples installation and choose the examples you want to see. Other than that, you can simply rightclick on any mounted folder in Filesystems and create Hello World example.
    Peter

  • Java Forte CE and J2ME Wireless Toolkit configuration

    I installed Sun Java Forte V3.0 Community Edition and the J2ME Wireless Toolkit 1.0.3.
    I not able to run a MIDlet for the PALM OS Emulator. Wen I execute the MIDLet suite, the output windows returns: "Error could not find a JVM"
    - Does any body knows how to properly configure Java Forte to run application on the Palm OS Emulator (POSE).
    - Does any body knows how to attach Sun Forte debugger for MIDLet applications ?
    Thanks

    hi,
    First Install the forte and then install the j2mewtk.While installating j2mewtk chose integrated option.
    For Palm OS emulator you have to set the POSE location.
    Try out this.
    Open ktolbar.
    OpenProject.
    select an application.(examples)
    set device PalmOS_device.
    Now run the application.
    A window pop for u.
    This may help you
    good luck.
    koka

  • Null Pointer Exception and Illegal Arguement when ran with Wireless Toolkit

    The following code throws a null pointer exception after it tried to initialize the textBox. I am not sure if there is something I am not importing, or if it's just because I'm sick and my head is cloudy. :-}.
    I am using Wireless Toolkit 2.2 and Java 5.0
    Anyhelp would be appreicated. Thank You.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TacticalTestMain extends MIDlet implements CommandListener {
         private Display display;
         private Form formMain;
         private TextBox tbHelp;          //Text Box for help Command
         private Command cmExit;          //A button to exit midLet
         private Command cmBack;          //Go "back" to main form
         private Command cmHelp;          //Ask for help
         public TacticalTestMain()
              display = Display.getDisplay(this);
              formMain = new Form("Tactical Survey Program");
              cmExit = new Command("Exit", Command.SCREEN, 1);
              cmBack = new Command("Back", Command.BACK, 1);
              cmHelp = new Command("Help", Command.HELP, 1);
              formMain.addCommand(cmExit);
              formMain.addCommand(cmBack);
              formMain.addCommand(cmHelp);
              formMain.setCommandListener(this);
              System.out.println("Before Create Text Box");
              //Create the help textBox with a max of 25 charecters
              tbHelp = new TextBox("HeLp", "You can press the back button", 25, 0);
              tbHelp.addCommand(cmBack);
              tbHelp.setCommandListener(this);
              System.out.println("AfTER Create Text Box");               
         }//end constructor
         public void startApp()
              System.out.println("Inside StartApp()");
              display.setCurrent(formMain);
         }//end startApp()
         public void pauseApp()
         }//end pauseApp
         public void destroyApp(boolean unconditional)
              notifyDestroyed();
         }//end destroyApp()
         //Check to see if the exit button was selected
         public void commandAction(Command c, Displayable d)
              System.out.println("Inside commandAction()");
              String sLabel = c.getLabel();
              if(sLabel.equals("Exit"))
                   destroyApp(true);
    Errors from the KToolbar:
    Running with storage root DefaultColorPhone
    Before Create Text Box
    Unable to create MIDlet TacticalTestMain
    java.lang.IllegalArgumentException
         at javax.microedition.lcdui.TextField.setChars(+105)
         at javax.microedition.lcdui.TextField.setString(+27)
         at javax.microedition.lcdui.TextField.<init>(+134)
         at javax.microedition.lcdui.TextBox.<init>(+74)
         at TacticalTestMain.<init>(+134)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+19)
         at com.sun.midp.midlet.Selector.run(+22)
    Execution completed.
    743701 bytecodes executed
    23 thread switches
    741 classes in the system (including system classes)
    4071 dynamic objects allocated (120440 bytes)
    2 garbage collections (91412 bytes collected)

    Hi zoya,
    Here is the problem:
    tbHelp = new TextBox("HeLp", "You can press the back button", 25, 0);
    This line declares a maximum textbox size of 25 but in reality he is declaring a textbox of size 29.
    Thats why it is throwing the illegal argument.
    happy coding :)

  • Base64Binary to byte[] problem in Wireless Toolkit and NetBeans

    Hi,
    I am generating stub with J2me Wireless toolkit. But the problem is that the toolkit can't successfully convert base64Binary to byte[] and gives error "Unknown simple type byte[]". Netbeans also gives some error while compiling it. Please anybody tell me how can i resolve this problem. Using base64Binary type is must.
    Kindly reply if you know. My email address is [email protected]
    Wasif Ehsan
    [email protected]

    public interface JobUpdate {
         @SuppressWarnings("unchecked")
         public String[] getUpdatedJobList(@WebParam(name="phoneJobs")String[] phoneJobs);
         @SuppressWarnings("unchecked")
         public void retrieveJobsWorked(@WebParam(name="data")byte [] data);
    I then use this to start the service
    JobUpdateImpl implementor = new JobUpdateImpl();
              JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
              svrFactory.setServiceClass(JobUpdate.class);
              svrFactory.setAddress("http://localhost:9000/JobUpdate");
              svrFactory.setServiceBean(implementor);
              svrFactory.getInInterceptors().add(new LoggingInInterceptor());
              svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
              svrFactory.create();
    Then use the wtk stub generator pointing at the service.
    http://localhost:9000/JobUpdate?wsdl
    The error returned by the tool is error: Found unknown simple type: byte[]
    Any ideas?

  • Is MIDP 2.0 and CLDC  inluded in Sun Java Wireless Toolkit 2.5 for CLDC?

    I downloaded the "Sun Java Wireless Toolkit 2.5 for CLDC" and "Sun Java Toolkit 1.0 for CDC" and I have JDK 6.
    do I need to download anything else or is this all I need to make applications for cdc and cldc devices??
    please help.
    thank you.

    Most devices used today support MIDP 2.0, but not all of them support CLDC 1.1. If you can do without floats, it's better to restrict yourself to CLDC 1.0 & MIDP 2.0. Devices which only support MIDP 1.0 aren't suitable for today's game development anyway (performance, resolution...) so personally I'd suggest not bothering with them if you don't have to.
    Here are some lists you can use to help you decide what to use, based on how many devices you want to target:
    http://www.j2mepolish.org/devices/platform.html
    These lists aren't complete, so please let me know if you find better ones.

  • J2me wireless toolkit and MIDP,CLDC

    Hi,
    does the j2me wireless toolkit ship the cldc and midp with it ?

    why email, thats a forum because there are more people interested in problems and their solution than you.
    The 2.2beta also ships with the CLDC 1.1 and MIDP 2.0. Its a must because without it, you wouldnt be able to execute anything. And you cant put the JVM, MIDP and CLDC on your phone. The only thing you need is your application. The rest is implemented in hardware (or firmware of the phone). If not, theres no way to ''manually'' put in there (this includes upgrading).
    hth
    Kay

  • Crash when running basic midlet using  eclipseme and sun's wireless toolkit

    I am trying to run a demo midlet using sun's wireless toolkit in the eclipseme environment and I get the following error;
    ALERT: java/lang/ClassFormatError: Bad version information.
    alongwith a stack dump.
    Any ideas as to what the problem might be?
    Thanks.

    This is just a guess:
    (1) Your applications runs up against the maximum number of lock objects, which triggers an exception. This may be caused by either (a) your application requirements or (b) failure to commit/abort transactions.
    (2) The exception is not caught at the appropriate place, or appropriate action is not taken in the exception handling, which is to deallocate XmlResults and other objects (so the underlying C++ objects may be freed) and to abort the transaction.
    (3) C++ objects the Java wrappers of which should have been deleted (call delete()) are still around when they shouldn't be, and this causes a SEGV to happen, which is what you're seeing.
    If you think the above is possible, you could boil down com.company.MyClass to a minimal example that reproduces the behaviour you're seeing and is easy for others to run at home, and then post it here.
    Michael Ludwig

  • Wireless Toolkit 103 and NetBeans 33

    Hi,
    Is there a possibility to integrate (perhaps manually) the wireless toolkit with NetBeans 3.3? The installation doesn't work when I select the option Integrated!
    thx
    Pascal

    I'd like to know too. Anyone ever done this yet?

  • Using palm os emulator through java wireless toolkit!!.....pls help

    I have palm os emulator 3.5 installed.I am trying to integrate it wid d java wireless toolkit 2.2,in addition to d default devices provided by d toolkit.But i hav failed to integrate pose in jwtk.
    i am running midp2.0 and cldc1.1.
    Also i have downloaded d rom files required by d emulator.
    Pls anyone help me!!
    How can i use palm os emulator through java wireless toolkit?
    thanking you
    shivam sahai

    hi,
    I hope that you already have the J2ME Toolkit and that your emulator works okay. In the toolkit you get several examples to show you how to program a MIDlet. One has to do with a HTTP client server connection. Also in the API documentation for the J2ME there is a Connector class that you used to set up this communication and in the description of this class it pretty thoroughly explains how to set up an HTTP protocol client.
    However, if you want to do some other kind of networking then you are pretty much out of luck, as the TCPIP socket protocol has not been fully implemented and is optional to the J2ME specifications, only the HTTP protocol is certain to be available. This means that mobile phone companies can add other networking functionality to their phone's java virtual machine if they feel like it. This is a bummer I know.
    I hope this helps.
    Cheers,
    Mark

  • Reminder: Online chat, June 14: What's New in the Sun Java Wireless Toolkit

    Got a question about the Sun Java Wireless Toolkit (formerly known at the J2ME Wireless Toolkit)? Want to learn what's new and cool in the Sun Java Wireless Toolkit?
    (One thing new is that the Sun Java Wireless Toolkit 2.3 beta has been recently released.) Then join this chat with Ariel Levin, lead engineer for the Toolkit, writer Jonathan Knudsen, who's written a lot about the Toolkit, and product marketing manager E-ming Saung. They'll answer your questions on Tuesday, June 14, at 9:00 A.M. PDT (12:00 noon EDT/16:00 UTC).
    To join the chat, go to http://java.sun.com/developer/community/chat/index.html on June 14 and click on the "Join" link for the session.

    How about a link to a document for those of us who (a) don't want to spend a whole hour on the issue (b) don't want to do it at that particular time (c) both?

  • JSR 82 for the 2.5.2 wireless toolkit

    Can someone please confirm if the implementation for JSR 82 is included in the Sun Java Wireless Toolkit 2.5.2 for CLDC?

    I'm new enough to j2me programming and the wtk itself so I may have missed the point of your question but in my understanding...
    The sun wtk does contain an implementation of the bluetooth specification but this is only an interface and it does not actually enable communication with a device as stated in the wtk faq <link = http://java.sun.com/products/sjwtoolkit/FAQ.html#general>
    "Can I connect the wireless toolkit to an external bluetooth device, such as a mobile phone?
    No, the wireless toolkit does not enable communications with wireless devices. "

  • Need help with Socket prog using Java wireless toolkit

    Hi, I am not able to communicate between client (Palm emulator) and server (Java on computer) using Java Wireless toolkit.
    Can anyone please tell me a site that shows an example. I have seen a bunch of examples but they all run by importing com.sun.kjava which seems to have vanished into thin air. So I cannot run them. Someone please show me some lines of code that will send just one character from client Palm emulator to server. thanks.
    Syed

    hi,
    I hope that you already have the J2ME Toolkit and that your emulator works okay. In the toolkit you get several examples to show you how to program a MIDlet. One has to do with a HTTP client server connection. Also in the API documentation for the J2ME there is a Connector class that you used to set up this communication and in the description of this class it pretty thoroughly explains how to set up an HTTP protocol client.
    However, if you want to do some other kind of networking then you are pretty much out of luck, as the TCPIP socket protocol has not been fully implemented and is optional to the J2ME specifications, only the HTTP protocol is certain to be available. This means that mobile phone companies can add other networking functionality to their phone's java virtual machine if they feel like it. This is a bummer I know.
    I hope this helps.
    Cheers,
    Mark

  • Java ME: Sun Java Wireless Toolkit not available anymore?

    Hey everyone,
    Does anyone know whats going on here? http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javame-419430.html
    Says it's been updated and will be available shortly - except it looks like it's been like that since March 20th (?)
    I'm trying to get started on a Java ME project that was dumped on me so this is just perfect timing for me.
    Does anyone know where I could get a trusted version of the Java wireless toolkit outside of Oracle's site? Googling it gives me some dodgy looking sites which I'm not too keen on trusting.
    TIA
    Jay
    Edited by: 927609 on Apr 14, 2012 12:46 AM

    Try google: [url http://www.google.com/search?q=site%3Aforum%2Ejava%2Esun%2Ecom+communications+api+win32]site:forum.java.sun.com communications api win32. One of the replies in [url /thread.jspa?threadID=684314]second link seems to have the answer.

Maybe you are looking for

  • Skype credit issues

    Hi, I have an issue with my skype credit. Last week I did the payment to recharge my Skype credit. My Skype credit history says it was 'DELIVERED' however I didn't see any recharge in my account. I already checked the following link: https://support.

  • Summary says 8 GB of photos but where?

    The summary of the iPod says there are 8GB of photos but I do not know where these photos are located on the iPod. Can anyone tell me where it is? I want to backup them and delete them out of the iPod. I couldn't find it.

  • How to display first SPACE character in Column of ALV Grid Report?

    Hello All, In ALV Grid report, One of the column has a value like ' Test_Value'. In this value first character is SPACE but in display SPACE is not appearing. Field catalog type is:- slis_t_fieldcat_alv I have used the function module:- REUSE_ALV_GRI

  • RW-20001 Error: Unzip failed: Insufficient disk space:

    Hi , I'm trying to install Oracle apps 11i on windows xp professional. I'm having 320 GB hard disk and 4 GB ram. I have divided into 3 partitions . C 60 GB D 120 GB E 140 GB. I've staged all the dvds into E Drive. I'm installing apps on D Drive. At t

  • Developing iPad App

    Hi , I have to create an iPad application where user can see the forms and task. This app must be dynamic that means if any changes happen in its Form in sever, automtically reflect in my iPad App. Here is my question : Do we have any service which t