Hi there!

I am DESPREATE for some help... [just like most of us ;-)]
(this problem has been bugging me for the past 1.5 months.)

This message concerns a problem using: JDK, JRE and JC21
(all versions up-to date).

I am able to do the following:

- Run and Test (using the script files) the JC21 samples (< As described in
the UserGuide)
- Compile the NullApp.java to NullApp.class myself (this file is included in
the samples-source directory)

However, I am unable to actually USE the NullApp.class. [which I compiled
myself] I removed the samples.jar file from the jcwde.bat command line and I
inserted the location of the NullApp.class instead [and even tried to first
put that NullApp.class in a .jar file and then try again with puttin the
.jar file in the command line].

Unfortunately I receive the following error:

---------------
I:\jc21\bin>java  -classpath
I:\JDK\LIB;I:\JRE\LIB;I;i:\JC21\bin\jcwde.jar;i:\JC21\bin\NullApp.java;i:\JC
21\bin\api21.jar;i:\JC21\bin\NullApp.class;i:\JC21\bin\apduio.jar
com.sun.javacard.jcwde.Main   JP.cfg

[^^^ this is the command I use. JP.cfg is the correct file, containing the
NULLAPP 'reference' ONLY!]


JavaCard 2.1 Workstation Development Environment (version 0.4).
jcwde is listening for T=0 Apdu's on TCP/IP port 9,025.
java.lang.ClassNotFoundException: com.sun.javacard.NullApp.NullApp      [<<<
Main ERROR, I guess...]
jcwde terminating on receipt of SimulationException.  See previous messages
for
cause.
Exception in thread "main" com.sun.javacard.jcwde.SimulationException
        at
com.sun.javacard.jcwde.MaskedApplets.getInstallInstance(MaskedApplets
.java)
        at
com.sun.javacard.jcwde.SimPrivAccess.getROMApplet(SimPrivAccess.java)

        at
com.sun.javacard.impl.NativeMethods.getInstallMethod(NativeMethods.ja
va)
        at com.sun.javacard.impl.PrivAccess.initialize(Compiled Code)
        at javacard.framework.Dispatcher.cardInit(Dispatcher.java:225)
        at javacard.framework.Dispatcher.main(Compiled Code)
        at javacard.framework.JCWDEDispatcher.main(JCWDEDispatcher.java)
        at com.sun.javacard.jcwde.Main.run(Main.java)
        at com.sun.javacard.jcwde.Main.main(Compiled Code)

I:\jc21\bin>
--------------------------

Well, that;s it. I receive NO errors when compiling the NullApp.java like
this:
javac -classpath %JC21_HOME%\bin\api21.jar NullApp.java
[^^ Is this the correct way!?]

To complete this message, I will include my settings:

----------------SETTINGS----------
REM ------- JAVA CARD (BEGIN) ---------
SET JC21_HOME=i:\JC21
Set
PATH=%PATH%;I:\JDK\BIN;I:\JDK;I:\JRE\BIN;I:\JC21\BIN;D:\PROGRA~1\BORLAND\DEL
PHI4\BIN
SET JAVA_HOME=I:\JDK
set jc21bin=I:\jc21\bin
set CLASSPATH=I:\JDK\LIB;I:\JRE\LIB
REM -------  JAVA CARD(END)  ---------
----------------SETTINGS----------

Can you help me, please?

Thank you in advance,
John Brookman
 
 
P.S> If you think my settings, etc are correct, please respond as well...




Reply via email to