Menu

java.lang.NoClassDefFoundError: sim/toolkit/EditHandler

Help
2013-06-14
2014-02-04
  • Antônio Caiafa

    Antônio Caiafa - 2013-06-14

    I´m trying to run a simple javacard 2.1.2 applet, but i´m geting the following error:

    Exception in thread "main" java.lang.NoClassDefFoundError: sim/toolkit/EditHandler
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.sun.javacard.jcwde.MaskedApplets.getInstallInstance(MaskedApplets.java:212)
    at com.sun.javacard.jcwde.SimPrivAccess.getROMApplet(SimPrivAccess.java:131)
    at com.sun.javacard.impl.NativeMethods.getInstallMethod(NativeMethods.java:298)
    at com.sun.javacard.impl.PrivAccess.initialize(PrivAccess.java:267)
    at javacard.framework.Dispatcher.cardInit(Dispatcher.java:210)Java Card 2.1.2 Workstation Development Environment (version 0.18).
    Copyright (c) 2001 Sun Microsystems, Inc. All rights reserved.
    jcwde is listening for T=0 Apdu's on TCP/IP port 9.025.

    at javacard.framework.Dispatcher.main(Dispatcher.java:48)
    at javacard.framework.JCWDEDispatcher.main(JCWDEDispatcher.java:22)
    at com.sun.javacard.jcwde.Main.run(Main.java:71)
    at com.sun.javacard.jcwde.Main.main(Main.java:136)
    

    Caused by: java.lang.ClassNotFoundException: sim.toolkit.EditHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 11 more

    I´ve found this class inside the lib ts_143019v050600p0.jar, which is in the classpath.

    Can you help me?

     
  • raulrms

    raulrms - 2013-12-18

    Hello Antônio
    Could you solve this ??

    I have the same problem...

     
  • IzyNFC

    IzyNFC - 2014-01-07

    Good morning,

    First of all, thank you for using IzyNFC.

    JCWDE is a simple stateless simulator that can not run complex JavaCard applet. Even if the classes are in the classpath. This is due to the fact that the classpath of the simulator is static. The workaround would be to create a Java program that loads the classes and runs JCWDE. But you have to know that the classes provided by the ETSI (ts****.jar) are just stubbed. There is no real implementation outside the SIM Card. A real implementation needs too much time to be developed.

    I hope this helps.

    Regards.

    IzyNFC Team

     

    Last edit: IzyNFC 2014-01-07
  • raulrms

    raulrms - 2014-02-04

    Thank you for your time!

     

Log in to post a comment.