This content has been marked as final. Show 6 replies
This error is from the Java run time not finding the main class the shell script tries to execute. You could try adding some debug output to the shell script (or batch file on Windows) to see what is being picked up by the script.
From Linux JCDK:Since the class not being found is the one being passed to the Java executable the converter.jar is either not being found or is corrupt. You can test the jar with "jar -tf converter.jar" in the JC_HOME/lib directory. Make sure the class com.sun.javacard.converter.Converter is listed.
$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.converter.Converter "$@"
First of all, thank you for taking the time to reply. I also apologize I haven't given any feedback for some time as I was busy with some other responsibilities I had.
That being said;
I checked the folders, converter.jar is under "C:\java_card_kit-2_2_1\lib" and converter.bat is under "C:\java_card_kit-2_2_1\bin"
After I tried "jar -tf converter.jar" in the JC_HOME/lib directory I got a list of class files which is in the JAR File. I believe this proves the JAR file is ok. Right?
Whatever the parameters I am passing, it is showing this same error I stated earlier.
You also told me to add a debug output to the batch file. I opened the bat file as txt file. But where should I add the "-debug" syntax?
I meant to add echo statements to the batch file. You could also try calling the java command directly (as the batch file does). Since the JAR file seems to be OK, there is something wrong with either your environment variables or batch file. I am assuming the batch file has not been changed so this should not be the problem. The converter is just a Java application so it is the same mechanism as running any Java application from a JAR file.
I have done as you said.
I modified the .bat file where it had the echo off. I set that to on. Then I ran the command again. I did't understand what output it was giving me so I turned it back off.
I also checked the environment variables. I saw everything was in order but I still deleted and recreated them, maybe I missed something.
Then I tried my command again and started getting other parameter related errors. I have resolved those also. I don't know what actually solved the issue, but thank you very much.I really appreciate the suggestions.
run this one in command prompt and then convert the applet using converter tool
JC_HOME = C:\java_card_kit-2_2_2\bin\
D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
go to following directory and run the converter tool in command prompt
step 1: cd C:\java_card_kit-2_2_2\bin\
then run this command under the above directory
step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
For more doubts mail me....
*[removed by moderator]*
Thanks and Regards
Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever.
2010 posting to a Sun Microsystems forum
by someone that never re-registered when Oracle folded all the threads into its forum site.
Resurrected in 2012.
Locking to prevent another attempt at a resurrection.