2 Replies Latest reply: Jun 7, 2013 2:23 AM by Re Na RSS

    JCardSim problem

    936354
      I have a script file like this.

      powerup;
      // Select TimeAttend //aid/1B85451EEB/C91E
      0x00 0xA4 0x04 0x00 0X07 0X1B 0X85 0X45 0X1E 0XEB 0XC9 0X1F 0x7F;

      In my hostApp, I've JCardSim with me.
      Then the source code,
       public HostApp(String testName)  {
       
              simulator = new Simulator();
               //1B85451EEB/C91E
              byte[] appletAIDBytes = new byte[] { (byte) 0X1B, (byte) 0X85, (byte) 0X45, (byte) 0X1E,
                 (byte)0XEB, (byte) 0XC9, (byte) 0X1F, };
              
              
              
              AID appletAID = new AID(appletAIDBytes, (short) 0, (byte) appletAIDBytes.length);
              simulator.installApplet(appletAID, TimeAttend.class);
              simulator.selectApplet(appletAID);
      Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com.walker.TimeAttend

      But the line simulator.installApplet fails, why?
      Thanks
      Jack