Ant tools: converter java card
Hi,
I have already a problem with the ant tools for java card.
I build a build.xml file which has for aim to generate the CAP,EXP, JCA and the *.script files before downloading them on cref.
I have a problem with the command converter. Here you can find my code:
<!--generation of the JCA,EXP and CAP file-->
<echo message = "Generation of the CAP,JCA and EXP files..." />
<convert
JCA="true"
EXP="true"
CAP="true"
packagename="versionZero"
packageaid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00"
majorminorversion="1.0"
verbose = "true">
<AppletNameAID
appletname="versionZero.VersionZero"
aid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00:0x00"/>
<classpath refid="classpath"/>
</convert>
My problem is the following: the command converter say mys package is empty and it is not the case: it contains all the *.java file.
Must I compile the files with javac before using the convert command or it is another problem?
Here is the trace of my build.xml file:
Buildfile: /home/ehoudart/app-manager/VersionZero/src/build.xml
testinit:
[echo] Deleting the old generated files...
[echo] Generation of the CAP,JCA and EXP files...
[convert] Java Card Ant Tasks, Version 1.0
[convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[convert] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
[convert] Java Card 2.2.2 Class File Converter, Version 1.3
[convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[convert] error: versionZero: empty package.
[convert] conversion completed with 1 errors and 0 warnings.
BUILD FAILED
/home/ehoudart/app-manager/VersionZero/src/build.xml:115: Conversion failed
Total time: 384 milliseconds
Thanks in advance for your answer.
Hi,
Please use {code} tags for posting code etc.
<!--generation of the JCA,EXP and CAP file-->
<echo message = "Generation of the CAP,JCA and EXP files..." />
<convert
JCA="true"
EXP="true"
CAP="true"
packagename="versionZero"
packageaid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00"
majorminorversion="1.0"
verbose = "true">
<AppletNameAID
appletname="versionZero.VersionZero"
aid="0xB0:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00:0x00"/>
<classpath refid="classpath"/>
</convert>
My problem is the following: the command converter say mys package is empty and it is not the case: it contains all the *.java file.
Must I compile the files with javac before using the convert command or it is another problem?That is correct. You can make your convert task depend on a compile task for this.
Cheers,
Shane
Similar Messages
-
Ant tools: converter java card - class file not belonging to the package!
Hi
I have another problem with converter. Could you help me please again if you have the time?
I have created a directory when I save the class files generated by javac. After That , I use convert in this way:
<convert
JCA="true"
EXP="true"
CAP="true"
packagename="testUn/classes/testUn"
packageaid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00"
majorminorversion="1.0"
verbose = "true">
<AppletNameAID
appletname="testUn.classes.testUn.PorteAppUn"
aid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00:0x00"/>
<classpath refid="classpath"/>
</convert>
Here is the answer of the computer:
[echo] Generation of the CAP,JCA and EXP files...
[convert] Java Card Ant Tasks, Version 1.0
[convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[convert] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
[convert] Java Card 2.2.2 Class File Converter, Version 1.3
[convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[convert] parsing /home/ehoudart/app-manager/VersionZero/src/testUn/classes/testUn/PorteAppUn.class
[convert] converting testUn.PorteAppUn
[*convert] error: class PorteAppUn does not belong to package testUn.classes.testUn.*
[convert] conversion completed with 1 errors and 0 warnings.
I do not understand why this unique applet class file does not belong to its own package. Is someone an idea?
Thanks very much in advance for your answer.Here is a complete example build.xml (I think I have posted this before).
<?xml version="1.0" encoding="UTF-8" ?>
<project default="convert" name="javacard-starter">
<!-- Build specific properties -->
<property name="target.classes" location="${basedir}/target/classes" />
<property name="target.javacard" location="${basedir}/target/javacard" />
<property name="source.java" location="${basedir}/src/main/java" />
<!-- Must point to the folder containing the JAR files from the JCDK -->
<property name="javacard.libs" location="${basedir}/lib" />
<!-- Must point to the folder containing the JAR file from the JCDK ant task -->
<property name="javacard.ant-task" location="${basedir}/lib" />
<!-- Must point to the folder containing the API export files from the JCDK -->
<property name="javacard.export" location="${basedir}/src/main/export" />
<property name="verbose" value="true" />
<property name="noverify" value="false" />
<!-- Path for JC tasks -->
<path id="classpath">
<fileset dir="${javacard.ant-task}">
<include name="*.jar" />
</fileset>
<fileset dir="${javacard.libs}">
<include name="*.jar" />
</fileset>
</path>
<!-- set the export path to the Java Card export files -->
<path id="export" description="set the export file path">
<fileset dir="${javacard.export}">
<include name="**/*.exp" />
</fileset>
<pathelement path="${javacard.export}" />
<pathelement path="${target.classes}" />
<pathelement path="${target.javacard}" />
</path>
<!-- Definitions for tasks for Java Card tools -->
<taskdef name="capgen" classname="com.sun.javacard.ant.tasks.CapgenTask" classpathref="classpath" />
<taskdef name="deploycap" classname="com.sun.javacard.ant.tasks.DeployCapTask" classpathref="classpath" />
<taskdef name="convert" classname="com.sun.javacard.ant.tasks.ConverterTask" classpathref="classpath" />
<taskdef name="verifyexport" classname="com.sun.javacard.ant.tasks.VerifyExpTask" classpathref="classpath" />
<taskdef name="verifycap" classname="com.sun.javacard.ant.tasks.VerifyCapTask" classpathref="classpath" />
<taskdef name="verifyrevision" classname="com.sun.javacard.ant.tasks.VerifyRevTask" classpathref="classpath" />
<typedef name="appletnameaid" classname="com.sun.javacard.ant.types.AppletNameAID" classpathref="classpath" />
<typedef name="jcainputfile" classname="com.sun.javacard.ant.types.JCAInputFile" classpathref="classpath" />
<target name="init">
<mkdir dir="${target.classes}" />
<mkdir dir="${target.javacard}" />
</target>
<target name="clean">
<delete dir="${target.classes}" />
<delete dir="${target.javacard}" />
<delete dir="${javacard.eeprom}" />
</target>
<target name="compile" depends="init" description="Compile source code to class files">
<!-- Compile the java code from ${src} to ${classes} -->
<javac debug="yes" optimize="no" srcdir="${source.java}" destdir="${target.classes}" source="1.5" target="1.5">
<classpath refid="classpath" />
</javac>
</target>
<target name="convert" depends="compile" description="Convert class files to cap files">
<convert packagename="chaining" packageaid="0xF0:0x00:0x00:0x01:0x00:0x01" majorminorversion="1.0" classdir="${target.classes}" outputdirectory="${target.classes}" jca="true" exp="true" cap="true" debug="true" verbose="${verbose}" noverify="${noverify}">
<appletnameaid aid="0xF0:0x00:0x00:0x01:0x00:0x01:0x00:0x01" appletname="chaining.ChainingApplet" />
<exportpath refid="export" />
<classpath refid="classpath" />
</convert>
</target>
<target name="copy-debug">
<mkdir dir="${target.debug}" />
<echo>Copying cap files</echo>
<copy flatten="true" todir="${target.debug}" verbose="true">
<fileset dir="${target.classes}" includes="**/*.cap" />
<fileset dir="${target.classes}" includes="**/*.exp" />
<fileset dir="${target.classes}" includes="**/*.jca" />
</copy>
</target>
<target name="all" depends="clean, convert" />
</project> -
Hi,
I used the ant tools going with the java card development kit 2.2 and I have the following errors when I run the build.xml
testinit:
[apdutool] Java Card Ant Tasks, Version 1.0
[apdutool] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
[apdutool] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
[apdutool] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/javacard/apdutool/Main
If you have ever had this error, can you help me please to solve it?
Thanks in advance.Hi,
You are missing a JAR file. Check to make sure you have your classpath setup in your build file with the required libraries.
Cheers,
Shane -
Why do we need IDE or tools for java card programming?
Hi,
I am a newbie to java card, using java card kit tools themself, we can test and burn the code into card right?
then why do we need IDE for java card, please correct me , if i am wrong,
Thanks in advance,
Sri.Dear Sri,
We have compiler, linker etc for every language starting of from C or C++ or Java. JDK has all the tools necessary to develop and run a Java program. Similarly Java Card Development Kit has all the tools for developing and deploying a Java Card applet. But what an IDE does is too integrate all these tools and make it easier for the JavaCard programmer to develop his applets. Just like Eclipse is used for Java applet development.And not everytime the code is burned to the card. Its only during masking code is burned to the card, i.e if u can call it burning. Masking makes an applet permanent on the card. -
Java code coverage tool for Java Card?
Hello,
I am looking for "Java code coverage tool" that can be used for testing Java Card Applets.
Has anyone tried EMMA<http://emma.sourceforge.net/> with JCWDE, or other tools?
Any information appreciated.
icharaJCOP Tools 3.0 for Eclipse 2.1 support code coverage with the JCOP simulations for Java Card 2.1. The newest JCOP41 simulation for Java Card 2.2.1 does not yet have this feature.
Code coverage information is shown in the Profiling view, when it is enabled in the Launch Configuration. The editor also shows colored bars next to source lines to quickly identify dead code. -
Java Card Development Tool and Cards.
Hello all,
I'm thinking to purchase some Java Card Development Tools and Java Cards.
Could you guys recommend any?
Now I'm checking the Schlumberger's Cyberflex Access SDK. If I buy this, which card do I have to choose? 'Cyberflex Access Developer Card'?
Howabout Gemplus? Oberthur? or G&D? and anything else?
I look forward to hearing from you guys,
Thank you.
Julie.A list of Java Card development tools is available at http://wireless.java.sun.com/allsoftware/index.html#jcardtools
-
Java Card Applet Development, Testing, Loading in Eclipse 3.2.0
Dear friends,
1.
we have installed Eclipse 3.2.0, activated JCOP Tools 3.1.2, installed Java Card 2.2.1 devepment tools..
2.
How we can start testing and loading the java applet into JCOP31 chip ??
3.
It's said that we should use Java Card Workstation Development Environment (JCWDE), but we can not find it in the eclipse .
4.
Where we can find Eclipse menu for the
-Converter tool
-APDU Tool Utility
-Java Card Workstation Development Environment (JCWDE)
5.
is there any resource/web/link that contains Eclipse tutorial on this Java Card Development ???
Tks,
hendy1. Good.
2. I suggest you start testing using the simulator, however if you want to test directly on the card at once, select your card reader using the /term command and use the commands as described in help to start sending APDUs to the card.
3. This is not a part of the JCOP tools for eclipse (which is developed by IBM and maintained by NXP), but part of the JavaCard development toolkit developed and maintained by Sun. See http://java.sun.com/products/javacard/dev_kit.html.
4. Read the above. None of this is part of JCOP tools for eclipse.
5. As far as I know, there is no independent newbie guide for JCOP tools, but I would check out the help function included in the tools themselves if I were you.
Good luck! -
Personalize cjcre/ java card
Hi,
I would like to know how to personalize cjcre/ java card. For example, we have developed applets, which needs to study the data like card holder name, date of birth personalised in card. This is needed for debugging purpose. There are straight forward methods in JCOP for personalising the card simulator. Some sample code of what we do in JCOP:
Following classes are used:
import com.ibm.jc.JCTerminal;
import com.ibm.jc.JCard;
import com.ibm.jc.terminal.TraceJCTerminal;
Command like this are used:
"Perso #04","80","E2","00","00","010129702757115413330089010582D1412201029430730F5F2011496E7465726F7065722E20313920383041")
Is it possible to do this kind of work in cjcre or related tools in Java Card system? We are not sure about the JCOP continuation of support, so we would prefer to have another tool like cjcre to simulate cards.
Any help is appreciated
Edited by: mohanvaradharajan on Jul 8, 2010 3:39 AMHi,
There is an offcard API included in the JCDK. You will need OCF as well for this to work. You can look at the samples in the JCDK for an example of how to use this.
Here is also a related thread: [http://forums.sun.com/thread.jspa?forumID=23&threadID=5440330]
Cheers,
Shane -
How to load Java Card 2.2.1 Wallet application into Real Card?..
Hi Friends..
I've compiled and converted Java Card 2.2.1 Wallet example application
Now, i want to load this wallet.cap file into Java Card..
This is the content of the wallet.opt file :
-out CAP
-exportpath C:\java_card_kit-2_2_1\api_export_files
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x6:0x1 com.sun.javacard.samples.wallet.Wallet
com.sun.javacard.samples.wallet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xC:0x6 1.0Actually, i've loaded HelloWorld.cap into Java Card successfully..
I use this script for load wallet.cap into Java Card :
mode_211
enable_trace
establish_context
card_connect -readerNumber 2
open_sc -security 0 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 -sdAID A000000003000000
load -file HelloWorld.capbut i got this output :
C:\GPShell-1.4.2>GPShell Coba.txt
mode_211
enable_trace
establish_context
card_connect -readerNumber 2
* reader name OMNIKEY CardMan 5x21-CL 0
open_sc -security 0 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
f -enc_key 404142434445464748494a4b4c4d4e4f
Command --> 80CA006600
Wrapped command --> 80CA006600
Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
886FC6B03640B06092A864886FC6B040215650B06092B8510864864020102660C060A2B060104012
A026E01029000
Command --> 8050000008C44BBCD614E2FD9D00
Wrapped command --> 8050000008C44BBCD614E2FD9D00
Response <-- 0000715457173C2A8FC1FF02001FB16F1748944AFEC16A7C1135C3669000
Command --> 848200001076F1D58FAF26930630F0D3204AD5EB9B
Wrapped command --> 848200001076F1D58FAF26930630F0D3204AD5EB9B
Response <-- 9000
install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 -sdAID A0000000030
00000
Command --> 80E602001C09A00000006203010C0108A0000000030000000006EF04C60202000000
Wrapped command --> 80E602001C09A00000006203010C0108A0000000030000000006EF04C602
02000000
Response <-- 009000
load -file wallet.cap
file name wallet.cap
Command --> 80E80000EFC48203BE010013DECAFFED010204000109A00000006203010C0602001F
0013001F000E000B005E001201CD000A003A000000D400000000000001010004000B01020107A000
000062010103000E010AA00000006203010C0601004106001200800302000104040000005CFFFF00
4F00640701CD000543188C0003188F00123D0610088C00028700191E2529041E160441044131191E
2529051E160541044131191E252906AD00191E044116068B0004188B00057A05308F00063D181D1E
8C00073B7A0110AD008B00086104037804780110AD008B00097A0421198B000A2D1A031A032510FC
53381A0325610A1A0425
Wrapped command --> 80E80000EFC48203BE010013DECAFFED010204000109A00000006203010C
0602001F0013001F000E000B005E001201CD000A003A000000D400000000000001010004000B0102
0107A000000062010103000E010AA00000006203010C060100410600120080030200010404000000
5CFFFF004F00640701CD000543188C0003188F00123D0610088C00028700191E2529041E16044104
4131191E2529051E160541044131191E252906AD00191E044116068B0004188B00057A05308F0006
3D181D1E8C00073B7A0110AD008B00086104037804780110AD008B00097A0421198B000A2D1A031A
032510FC53381A0325610A1A0425
Response <-- 009000
Command --> 80E80001EF10A46B037A1A032510806A08116E008D000B1A042575002D0004002000
27003000210040001B0050001518198C000C7A18198C000D7A18198C000E7A18198C000F7A116D00
8D000B7A0324AD008B001061081163018D000B198B000A2D1A072532198B00115B29041F046B0716
04046A081167008D000B1A082529051605107F6E0616056308116A838D000BAF01160541117FFF6F
08116A848D000B18AF0116054189017A0324AD008B001061081163018D000B198B000A2D1A072532
198B00115B29041F046B071604046A081167008D000B1A082529051605107F6E0616056308116A83
8D000BAF011605436308
Wrapped command --> 80E80001EF10A46B037A1A032510806A08116E008D000B1A042575002D00
0400200027003000210040001B0050001518198C000C7A18198C000D7A18198C000E7A18198C000F
7A116D008D000B7A0324AD008B001061081163018D000B198B000A2D1A072532198B00115B29041F
046B071604046A081167008D000B1A082529051605107F6E0616056308116A838D000BAF01160541
117FFF6F08116A848D000B18AF0116054189017A0324AD008B001061081163018D000B198B000A2D
1A072532198B00115B29041F046B071604046A081167008D000B1A082529051605107F6E06160563
08116A838D000BAF011605436308
Response <-- 009000
Command --> 80E80002EF116A858D000B18AF0116054389017A0422198B000A2D198B0013321F05
6D081167008D000B19058B00141A03AF0110084F5B381A04AF011100FF535B381903058B00157A04
22198B000A2D198B00115B32AD001A081F8B001661081163008D000B7A08000A0000000000000000
000005005E0017020000000200000106800900068003000380090803800301010000000600000103
8009020380090503800A01068007010600017A06000121060000C5060001AF0380090403800A0601
80090003800A0703800A0903800A040380090109003A000F131F200D6941110505410E0520091C00
270504072A040607090D
Wrapped command --> 80E80002EF116A858D000B18AF0116054389017A0422198B000A2D198B00
13321F056D081167008D000B19058B00141A03AF0110084F5B381A04AF011100FF535B381903058B
00157A0422198B000A2D198B00115B32AD001A081F8B001661081163008D000B7A08000A00000000
00000000000005005E00170200000002000001068009000680030003800908038003010100000006
000001038009020380090503800A01068007010600017A06000121060000C5060001AF0380090403
800A060180090003800A0703800A0903800A040380090109003A000F131F200D6941110505410E05
20091C00270504072A040607090D
Response <-- 009000
Command --> 80E80003EF07241D06060607080804091215101008040912150D0F050B051907050A
080B00D4010001000000000200090000000000003001000000018004FF820001003B003E00000000
00090041003B000C000000000601004F0048000B000000000401005C003900060000000007010064
0044005F00000000FF0200C50044005A00000000FF0201210044005700000000FF02017A00440033
00000000FF0201AF0044001C0000000000170030003400360039003B0039FFFF003B003E00390040
0042004400440044004400480034FFFF00340042004A004D056800900140033310011004B4310130
01B00241066800A10120
Wrapped command --> 80E80003EF07241D06060607080804091215101008040912150D0F050B05
1907050A080B00D4010001000000000200090000000000003001000000018004FF820001003B003E
0000000000090041003B000C000000000601004F0048000B000000000401005C0039000600000000
070100640044005F00000000FF0200C50044005A00000000FF0201210044005700000000FF02017A
0044003300000000FF0201AF0044001C0000000000170030003400360039003B0039FFFF003B003E
003900400042004400440044004400480034FFFF00340042004A004D056800900140033310011004
B431013001B00241066800A10120
Response <-- 009000
Command --> 80E880040603441004B43200
Wrapped command --> 80E880040603441004B43200
Response <-- 6985
load_applet() returns 0x80206985 (6985: Command not allowed - Conditions of use
not satisfied.)The message error is : load_applet() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied
could you help me regarding this?..
Thanks in advance.. :)Sorry, i forgot to ask this question..
Will .cap file installed automatically, when .cap file loaded successfully?
it means that the all packages and applets would be installed automatically, when that all files loaded successfully?
Thanks in advance.. -
Reg: java card application needs
Dear experts,
i am a newbie to java card, After a lot of googling, i found JACCAL to aid java card programming development. I have downloaded and installed it but i dont know how to use it? any help will be greatly appreciated,
By the way, i need to know why do we need IDE or tools for java card programming?. Cant we complete right from typing program to till burning on card using the java card kit ? please correct me, if i am wrong.
I have tested the sample programs successfully with java card kit 2.1.2. My doubt is, What are the needs for java card application, like what CAD, card and tools should be used or purchased(most of them ,i found from the web are outdated like JCOP, OCF).
Thanks in advance.
SRI.you mean by again doing right click src then New-other-java card Applet.
-
Compiling java card with Eclipse
Hi,
I compiled and converted Java card code both from the command prompt and Eclipse in Windows XP and it worked just fine.
However, while doing the same in Eclipse set up on a Linux(Ubuntu) machine, I am getting the following error:
error: export file framework.exp of package javacard.framework not found.
I have been searching around for answers to why this might be happening. However, I haven't found any. If anyone knows why, please help me out with this.
Thanks a lot in advance.
Best,Are you converting with an Eclipse plugin? If so what are you using?
That error is because the converter can't find the EXP files from the JCDK. You may need to update a setting in the plugin to point to the JCDK.
Cheers,
Shane -
hi,
I load A applet to java card. Then i load B applet.
But i want to load if key match then only load A or B applet.
How can i maintain load applet.
I am using Eclipse SDK JCOP31 tool.thanks for reply.
I am using Eclipse SDK JCOP 31 tools for Java card applet development and loading same into java card.
when loading applet into java card some internal authentication process is handled by JCOP.
But i don't have clear idea about this authentication process.
So can any one explain which algorithm they used for authentication & how they will be setting the Key for the same.
If i want to change the algorithm and key in JCOP how i can proceed?
Regard,
Senthil -
How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class
Hi All,
i m very new in the development field.plese help me...
i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
thanks in advance...
Vikram Singhlemilanais wrote:
hello!
I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense. -
IDES for writing Java card applets and converting the applets as CAP FILE.
I have developed a JAVA CARD APPLET , FindMFValueJCA.java . It gets compiles in net beans 6.0 But while converting the applet to CAP file i am getting some errors. Is there any other IDES which take care of converting the CAP files
What's the Java version you are using?
As the java card tool kit has version dependencies. If you are using java_card _kit 2.2.2 then 1.5 is fine. -
Hello,
I've run into a small problem, if u could help me out, Id be really grateful.
The problem lies in the WAY the tools are used(apdutool, jcwde etc). The project envisages the running of the tools from a RELATIVE point of view and not absolute. That is, (simplistically speaking),
The Host side is handled thus:
I AM NOTrunning jcwde as : jcwde -p 9025 jcwde.app
The mode is : c:\javacarddk\bin\jcwde.bat -p 9025 c:\temp\raj\jcwde.app
The Card side is handled thus :
The CAP file generation is : c:\javacarddk\bin\converter.bat -config c:\temp\raj\walletfile.opt
The SCR file generation is : c:\javacarddk\bin\scriptgen.bat -o wallet.scr com/sun/..../javacard/wallet.cap
However. the SERVER responds positively with the "T=0 listening on port 9025" message,
but as soon as the CLIENT is started, ie
c:\javacarddk\bin\apdutool c:\temp\raj\wallet.scr,
The following exception is thrown :(SERVER)
java.net.SocketException: Connection reset by peer: JVM_recv in socket input str
eam read
jcwde terminating on receipt of SimulationException. See previous messages for
cause.
and on the CLIENT :
com.sun.javacard.apdutool.ReaderWriterError: Card powered down. (0x15)
Please help, as the source codes of the JavaCard API are not available, so I am unable to determine if this
RELATIVE path access is the root of the problem.
Any help is appreceiated!!!!
Thanks
--Rajcref is not the same as JCWDE.
JCWDE uses class files to emulate Java Card environment. It doesn't support package installation.
If you want to test a package using JCWDE you should a) add path to your class files to classpath that is used by JCWDE and b) specify in JCWDE configuration file AIDs for your applets.
JCWDE receives APDU commands and transfer them to your classes, everything is executed in usual java VM. You can even put debug output (System.out.println(...)) into your sources.
cref if a 'c reference implementation' of Java Card VM. It executes Java Card bytecodes and emulates real device. It supports package installation (scriptgen/apdutool) and works with converted packages.
If you want to test a package using cref you should compile sources, convert class files into cap file, create a script for package installation and use apdutool to install and 'run' package in cref.
Maybe you are looking for
-
PDF files will not open in Mozilla, they do in Safari.
I am unable to open PDF files when working in Firefox. A message comes up indicating failure. I am able to open a PDF file is I am working in Safari. I have an Apple Macbook.
-
What has happened to support(esp in Vista) for the drivers for the X-Fi Xtreme Music card. When I look for drivers in the downloads section there is no mention of the Xtreme Music card anymore. This is not an old card. Whats going on Creative. BTW th
-
Microsoft Office has detected a problem with your Information Right Management configuration.
Hi , I have a Windows Server 2012 RMS Cluster with Cryptograph Version 1 and trusted public certificates. I am using AD RMS at the moment with Exchange and it works fine via Outlook Webapp and client workstations. I have a Windows 2008R2 Terminal Ser
-
Table column header text vs. popup column menu text
Does anyone know how to show different text in the table show/hide popup menu than in the column header itself? popup menu is the one that lets us manipulate column visibility but it seems forever bound to what I show in the column header :( Apprecia
-
Cannot switch songs while in lock screen
Since I upgraded to IOS7, I am not able to switch songs while in lock screen. I was able to do this without any issue in all my previous versions. It worked in Music as well as Pandora. Now, I have to first unlock the screen then switch. The funny pa