problem with build_samples.bat in java_card_kit-2_1_2
Hi,
I have installed jdk1.3.1_20 and have setup java_card_kit-2_1_2. Following the website, I could compile Wallet.java. But some reason the build_samples.bat is not working properly. Looking through the code, when i reach to the line:
%JAVA_HOME%\bin\jar -xvf %JC21_HOME%\lib\api21.jar (line 46 of the build_samples.bat) it gives me this error:
java.io.FileNotFoundException: c:\Java\java_card_kit-2_1_2 (Access is denied)
at java.io.FileInputStream.open (Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:91)
at java.io.FileInputStream.<init>(FileInputStream.java:54)
at sun.tools.jar.Main.run(Main.java:181)
at sun.tools.jar.Main.main(Main.java:899)
The system cannot find the file specified.
Why is this happening:
FYI this is my javacard_env.bat (the file that I start the javacard environment):
set classpath=.;
set JAVA_HOME=C:\Java\jdk1.3.1_20
set path=C:\Java\jdk1.3.1_20\bin;
set JC21_HOME=c:\Java\java_card_kit-2_1_2
set path=%path%;%JC21_HOME%\bin;
set classpath=%classpath%;%JC21_HOME%\lib\api21.jar;
Can someone please help.
Regards,
Zeallous
[1216 byte] By [
zeallousa] at [2007-11-27 8:56:49]

# 1
I'm actually ok with that part now,
I'm now having problems with converting Samples section:
once it reaches the line (whilst running build_samples.bat):
call %JC21_HOME%\bin\converter -config ..\src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt
it gives me this error:
Exception in thread "main" java.lang.NoClassDefFoundError: \lib\apduio/jar;C:\Java\java_card_kit-2_1_2
I have already put in this as my javacard_env.bat before i ran everything:
@echo off
set classpath=.;
set JAVA_HOME=C:\Java\jdk1.3.1_20
set path=C:\Java\jdk1.3.1_20\bin;
set JC21_HOME=C:\Java\java_card_kit-2_1_2
set path=%path%;%JC21_HOME%\bin;
set classpath=%classpath%;C:\Java\java_card_kit-2_1_2\lib\api21.jar;%CLASSPATH%;
set classpath=%classpath%;C:\Java\jdk1.3.1_20\jre\lib\ext\apduio.jar;%CLASSPATH%;
What is wrong with this?
Regards,
Zeallous
# 2
again i solved that problem...i installed it on another computer. I think its because of my java installations before...pointing all my classpaths wrongly.
Anyway.
so i've built the build_samples.dat
I was reading the conversion process. But I don't understand. What do I do to convert the class files? say, the wallet.class that i completed from wallet.java? And when converted, where would the file be?
regards,
zeallous