0

I have followed exact instructions from the link eclipse-jcde, and now I have all JCDE features in my eclipse (I'm using eclipse ver 4.3.1). I made a new java card project and added new applet file to it, but when I try to run the project it shows below error:

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/String

and this is my (empty!) code:

package myPackage;

import javacard.framework.APDU;
import javacard.framework.Applet;
import javacard.framework.ISOException;

public class MyApplet extends Applet {

private MyApplet() {
}

public static void install(byte bArray[], short bOffset, byte bLength)
        throws ISOException {
    new MyApplet().register();
}

public void process(APDU arg0) throws ISOException {
    // TODO Auto-generated method stub

}

}

what should I do?

Community
  • 1
  • 1
electro
  • 141
  • 4
  • The installation steps clearly say that you should use Eclipse 3.2. Eclipse 4 is a totally different environment. Often plugins for Eclipse 3 also run in v4 but it looks like eclipse-jcde does not. – Robert Dec 03 '13 at 21:37
  • thanks robert, but when I try to run eclipse 3.2 on my computer it terminates with an error, I tested two copy of it but both shows same error. I'm using windows7 64bit, do you have any idea what is my problem? – electro Dec 04 '13 at 20:44
  • Install an old Java 1.6 32bit VM that is only used by this old Eclipse version. You can edit eclipse.ini and add the `-vm` parameter for specifying the 1.6 JVM path. – Robert Dec 05 '13 at 09:07
  • thanks again Robert, I did what you said and I think it works fine. I mean now I can covert, generate script, run script and so on but I'm not sure what is the right routine to simulate my applet. would you please help me? how can I use the JCDWE and CREF simulators? – electro Dec 06 '13 at 15:02
  • @electro : did you receive any answer for your last question? **[how can I use the JCDWE and CREF simulators?]**. can you help me to use CREF or JCDWE? – Ebrahim Ghasemi May 26 '14 at 12:07

0 Answers0