is the underline errors normal ?
also when I select an external reader to load the cap to the card, eclipse terminated everytime and give me the following error : ( i use Philips Pegoda Reader )
JVM terminated. Exit code=1
- os win32
- showsplash 600
- vm C:\Windows\System32\javaw.exe
- jar C:\Users\Nano\Desktop\eclipse\startup.jar
please help me , as I use for my graduation project and I am loosing time trying to solve it :(
what's the problem here ? and why the same applet can be run successfully on the simulator but can't load to a real card ?
I found a thread with the same problem but without answers :(
Well the simulator is for a JCOP41 and your card is a JCOP31.
There are a couple of things that tend to cause this type of problem. Usually its something like uploading an applet that was created using a new JDK and forgetting to specify "-target <card appropriate jdk>". Sometimes its imports of libraries that existed in the simulator, but not in the card.
And sometimes it's doing something wrong as part of the applet register method.
Try building the helloworld applet and uploading it. If that works, you've mostly eliminated the build process and can look at things like imports.
thanks a lot
yes the hello world applet can be uploaded
but how can I know whether the simulator is for 41 or for 31 ? I am really newbie :)
isn't both of them compliant to JavaCard Standard 2.2.1. and GlobalPlattform 2.1.1 ?
Take a look at the historical bytes from the ATR - the simulator returns JCOP41V221, your card returns JCOP31V232.
Both the cards are JC2.2.1 and GP 2.1.1, but JCOP V221 is different than JCOP V232. There are some functions available on 232 that are not available on 221 and vice versa.
The fact that you can load the helloWorld applet suggests that the problem is in your applet. Take a look at your constructor function and insert an ISOException.throwIt(<some error>) at some point in that function. If you get that error, then the cause is after, otherwise it's before. Lather, rinse repeat (e.g. move the exception the appropriate direction and try again).
but the applet is a sample applet ! and it runs perfectly on the simulator ! and the cap file have been generated as well.
it just can't be run and loaded to the card
is it possible that the applet have something wrong after that ?
and I can upload the hello world applet ONLY if I change the global platform to 2.0.1 and the JC to 2.1.1 and not in case gp is 2.1.1 & JC 2.2.1 !