Help about running Java Card developement Kit Demo

I am following the Java Card development kit step by step. I have set all environments but I could not run the demo at all. D:\JAVACARD\SAMPLES\SRC\DEMO>
if I type "jcwde jcwde.app" at the demo directory, it tells me that, jcwde is not an intenal or batch file command. when I copied the jcwde.bat from bin directory to demo directory, it run but a lot of erros.
I will be glad if somebody can help to overcome this initial and very important steps in my adventure to smart card.
Thanks

Thanks everybody for their contribution and suggestion. I have been able to make the demo works apart from demo1 which still give problems.
if I type jcwde jcwde.app, it gives me the following errors.
Java Card 2.2 Workstation Development Environment (version 0.18).
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
jcwde is listening for T=0 Apdu's on TCP/IP port 9,025.
Exception in thread "main" java.lang.IllegalAccessError: class javacard.framewor
k.JCWDEDispatcher cannot access its superclass javacard.framework.Dispatcher
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at com.sun.javacard.jcwde.Main.run(Main.java:77)
at com.sun.javacard.jcwde.Main.main(Main.java:141)

Similar Messages

  • Can I use Java Card Development Kit 2.2.1 on Windows XP?

    Can I use Java Card Development Kit 2.2.1 on Windows XP?
    If no, which kit supports XP?

    It is not as strait forward as per say.
    I would like to share some tips that I have learnt duirng my recent experience with Java Card Development Kit 2.1.2 ( It presumed that JAVA SDK and JCDK is properly installed:
    Additonal installation
    - you need to download Java Communicatons API version 2.o for Windows at http://java.sun.com/products/javacomm/downloads/index.html
    - unzip the downloaded file javacom20-win20.zip
    - copy comm.jar and javax.com.properties to %JAVA_HOME%\lib
    - copy win32com.dll to %JAVA_HOME%\bin
    Configuration of Environment
    - Activate System under Control Panel
    - Click Environment Variable button under Advance Tab.
    - Check that JAVA_HOME and JC21_HOME are there under User Variables for user123
    - Create a new enviroment by clicking New button under User Variables and Enter "CLASSPATH" for Variable Name and ".;c:\j2sdk1.4.1_04\lib\comm.jar for Variable Value ( the ".;" is important for the entry and varies according to your JAVA_HOME)
    Modifying %JC21_HOME%\samples\build_samples.bat
    - Next you need to modify the compiler option in build_samples.bat
    - Use editor to look for the portion "Compile Sample" and add "- target 1.1" to every statements here. A sample is listed below:
    %JAVA_HOME%\bin\javac -target 1.1 %JCFLAGS% src\com\sun\javacard\samples\HelloWorld\*.java
    You may proceed to test the demo codes as instrucrted in the User Guide.
    I hope the above will help those who are keen to have a head start in Java Card Developemnet.

  • Java Card Development Kit 2.2.1  error !!

    when i run jcwde in the DOS prompt after installing Java Card Development Kit 2.2.1,I got this error message:
    it returens Exception in thread "main" java.lang.NoClassDefFoundError: Card
    Any idea about this error
    THANSKS
    nihao

    Did you set the CLASSPATH?
    SET CLASSPATH=%JC_HOME%\lib\api.jar;%CLASSPATH%

  • Java Card Development Kit

    Can I use Java Card Development Kit 2.2.1 on Windows XP?
    If no, which kit supports XP?

    It is not as strait forward as per say.
    I would like to share some tips that I have learnt duirng my recent experience with Java Card Development Kit 2.1.2 ( It presumed that JAVA SDK and JCDK is properly installed:
    Additonal installation
    - you need to download Java Communicatons API version 2.o for Windows at http://java.sun.com/products/javacomm/downloads/index.html
    - unzip the downloaded file javacom20-win20.zip
    - copy comm.jar and javax.com.properties to %JAVA_HOME%\lib
    - copy win32com.dll to %JAVA_HOME%\bin
    Configuration of Environment
    - Activate System under Control Panel
    - Click Environment Variable button under Advance Tab.
    - Check that JAVA_HOME and JC21_HOME are there under User Variables for user123
    - Create a new enviroment by clicking New button under User Variables and Enter "CLASSPATH" for Variable Name and ".;c:\j2sdk1.4.1_04\lib\comm.jar for Variable Value ( the ".;" is important for the entry and varies according to your JAVA_HOME)
    Modifying %JC21_HOME%\samples\build_samples.bat
    - Next you need to modify the compiler option in build_samples.bat
    - Use editor to look for the portion "Compile Sample" and add "- target 1.1" to every statements here. A sample is listed below:
    %JAVA_HOME%\bin\javac -target 1.1 %JCFLAGS% src\com\sun\javacard\samples\HelloWorld\*.java
    You may proceed to test the demo codes as instrucrted in the User Guide.
    I hope the above will help those who are keen to have a head start in Java Card Developemnet.

  • ISO7816 for the Java Card Development Kit

    I'm having problems compiling the sample applets for the Java Card Development Kit (2.1.2). I keep getting the error that anything related to ISO7816 is not recognized. Is there something else I need to have in order to run this?

    You must have not Downloaded the Java Card API211 &Must not Have Given the class path.
    Neelesh

  • Updated link to Java Card Development Kit and related documentation

    Note that the right link for Java Card Development Kit and related documentation is
    http://www.oracle.com/technetwork/java/javame/javacard/download/index.html
    It used to be
    http://www.oracle.com/technetwork/java/javacard/downloads/index.html
    which is still on-line, but the links there are dead and sometime to obsolete stuff.

    If you don't have those directories, obviously, you don't have the source release with cryptographic extensions. You have a different release.
    The version you downloaded isn't a source release but you still have the full kit.
    For the src release, contact $un for a license.

  • Use of Java Card Development Kit

    Im a student doing a dissertation on Java Smart Card for a conversion Masters in Computing. I have been using the Java Card 2.1.2 Development Kit and User's guide. However, could anyone comment on the extent to which the kit is used in industry.
    Is it superseded by other development kits/IDEs? Is it incorporated into proprietary IDEs.
    Any feedback would be much appreciated.

    The kit is used extensively in the industry.
    When you buy a vendor's kit, they extend the Sun APIs and implement the JCRE based on the specifications.
    Also when you purchase a kit, you get additional implementation like crypto and Global Platform.
    Don't worry about incorporating kits into any IDE's. The applet's are very small and you can use any editor for it. A GOOD vendor kit will allow off card debugging/simulation. Gemplu$ has an implementation for Cafe, and Metrowerks has a JC IDE.

  • Can I install Java Card Development Kit on Debian GNU\linux?

    if that can be posible, how can do it?
    Thanks. ;)

    Please help,
    I am new to Java.
    I want to develop java programs.
    I have Linux, (mandarake flavour) installed on my
    computer.
    I know that there are diffent linux flavors.
    I have to the development kit download at:
    http://java.sun.com/j2se/1.4/download.html
    the page has downloads for
    Windows (U.S. English only) N/A
    Windows (all languages, including English)
    Linux Red Hat shell script
    Linux GNUZIP Tar shell script
    SolarisTM SPARCTM 32-bit binary
    Solaris Intel tar.Z N/A
    Installation Instructions
    Does this mean that I cannot use java development kit
    for my Linux version?????
    If I can I guess with the download it will tell me how
    to do installation for Linux? (I know sometimes only
    provide installation for Linux)The JDK has been rename J2SE (ie J2SE is the development kit).

  • How to run java card applet

    dear friend
    i am using java card development kit version 2.2.2. i have downloaded apache-ant-1.7.0-bin .i have tried to run the sample code provided by the kit.i n the kit i have seen a HelloWorld Applet. i have compiled it.using the follwing commands
    F:\Program Files\Java\jdk1.6.0_05>set JAVA_HOME=F:\Program Files\Java\jdk1.6.0_0
    5
    F:\Program Files\Java\jdk1.6.0_05>set PATH=%JC_HOME%\bin;%JAVA_HOME%\bin;%PATH%
    F:\Program Files\Java\jdk1.6.0_05>cd..
    F:\Program Files\Java>cd..
    F:\Program Files>cd..
    F:\>cd arun
    F:\arun>cd apache-ant-1.7.0-bin\apache-ant-1.7.0\bin
    F:\arun\apache-ant-1.7.0-bin\apache-ant-1.7.0\bin>set PATH=%PATH%;F:\arun\apache
    -ant-1.7.0-bin\apache-ant-1.7.0\bin
    F:\arun\apache-ant-1.7.0-bin\apache-ant-1.7.0\bin>cd..
    F:\arun\apache-ant-1.7.0-bin\apache-ant-1.7.0>cd..
    F:\arun\apache-ant-1.7.0-bin>cd..
    F:\arun>cd java_card_kit-2_2_2
    F:\arun\java_card_kit-2_2_2>cd java_card_kit-2_2_2-rr-bin-windows-do\samples
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>javac
    -g -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard
    \samples\HelloWorld\*.java
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>javac
    -g -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard
    \samples\HelloWorld\*.java
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>javac
    -g -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard
    \samples\HelloWorld\*.java
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>
    and now what i have to do to get the output of this applet? can u please help me with detailed description of te steps and commands and the directory from which i have to use those commands
    thanks in advance
    bye

    Is there any suggestion for my question?.. :(
    Thanks in advance..

  • How to start java card development?

    Good Evening all,
    I am novice for java card development , from last some days I study java card and terms related to it, now i have some knowledge about applets , and API. as i read about java card 2 and 3, I think i moved to java card 2 that's why i download jcdk 2.1.
    Now i want to do something in development rather than further conceptual study. Frankly speaking I m confused where to move because different sites have different point of view so i want to execute my knowledge which i earned from last some days...
    so I want to ask
    1- which IDE would be best for java card development? { eclipse or net beans or something other}
    2- what things i would be require during java card application?{ java sdk version? jcdk version? ocf? or what}
    3- at start i want to use simulation technique to test what i made and how its work, so for this which tool or IDE would be best work for me,
    so kindly request you to guide me and show me the path where i can move and achieve what i want..
    ---------------------------------------------------------------------------------------------------Thank you in advance------------------------------------------
    Edited by: 911936 on Feb 2, 2012 10:01 AM

    Hello umer,
    last night it seems very tough to execute sample program of jcdk 2.2 but finally i make it, and i also i got the IDE - net beans that is very good for java card...
    I think i should share my knowledge here for next novice people...
    ----------------------------------------------------------------------------java card development require-------------------------------------------------------------
    Because here we use java for java card so we require
    1- java development kit (JDK) - use below link to get this.
    [get jdk here|http://download.oracle.com/otn-pub/java/jdk/6u30-b12/jdk-6u30-windows-i586.exe]
    2- Java card require java card development kit (JCDK) I think java card version 3 is latest but i used jcdk 2.2.1
    [get jcdk here|http://download.oracle.com/otn-pub/java/java_card_kit/2.2_01/java_card_kit-2_2_01-win-gl.zip]
    now  i think this is enough to start java card development...
    follow below steps
    1- install jdk 6 in c:/java/jdk1.6
    2-keep jcdk in c:/java_card_kit-2_2
    3- open command prompt and run
    a)-set JC_HOME=c:\java_card_kit-2_2
    b)-set JAVA_HOME=c:\java/jdk1.6
    c)-set PATH=%JC_HOME%\bin;%PATH%
    4-there are some sample project in scdk, if you want to get confidence , u should run one of them..
    run command- jcwde jcwde.app { jcwde is a simulator where u check what u made }
    and run this command in another command prompt- apdutool -nobanner -noatr demo1.scr > demo1.scr.jcwde.out
    You can get detail of 3 and 4 step from cJDK_Users_Guide.pdf which is present in jcdk.
    ------------------------this  is all which u need to do to get confidence in java card, but dont be over confident because in reality "the ball is not in your court yet"
    Note- if you are searching which java IDE is best for java card development then
    [click here- this is one of the best ide for java card|http://dlc.sun.com.edgesuite.net/netbeans/7.1/final/bundles/netbeans-7.1-ml-windows.exe]
    Edited by: 911936 on Feb 3, 2012 8:58 AM

  • How to run Java Card 2.2.1 demo application?

    Hi Friends..
    i want to know how to run Java Card 2.2.1 demo application in Windows environment..
    Sorry, perhaps this question looks like a little bit stupid.. :(
    In Windows, I've set the environment variables for :
    JAVA_HOME : C:\Program Files\Java\jdk1.6.0_03
    JC_HOME : C:\java_card_kit-2_2_1
    and then how to run demo1.scr, etc?.
    Please help me regarding this,
    Thanks in advance..

    Is there any suggestion for my question?.. :(
    Thanks in advance..

  • Java Software Development Kit (SDK) for Java 6 on Leopard.

    Does anyone know if the Java Software Development Kit (SDK) comes with Leopard, or if one needs to sign up for an Apple developer account to obtain it?
    I typed the following command on the Terminal command line: 
        javac
    The output of that command was:
    Usage: javac <options> <source files>
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath <path>          Specify where to find user class files
      -cp <path>                 Specify where to find user class files
      -sourcepath <path>         Specify where to find input source files
      -bootclasspath <path>      Override location of bootstrap class files
      -extdirs <dirs>            Override location of installed extensions
      -endorseddirs <dirs>       Override location of endorsed standards path
      -d <directory>             Specify where to place generated class files
      -encoding <encoding>       Specify character encoding used by source files
      -source <release>          Provide source compatibility with specified release
      -target <release>          Generate class files for specific VM version
      -version                   Version information
      -help                      Print a synopsis of standard options
      -X                         Print a synopsis of nonstandard options
      -J<flag>                   Pass <flag> directly to the runtime system
    I would like to use Java version 6.

    Hi John,
    I sort of remember Java 6  being IntelMac only...
    Once you’ve gotten logged in, go to Downloads, select “Java” on the right hand side of the page, and download the Java SE 6 beta. Note: this is only available for Intel Macs running Tiger or Leopard — if you’ve got a G4 or G5, you’re out of luck right now
    http://www.metaphoriclabs.com/articles/installing-java-6-on-mac-os-x/
    But here they are...
    http://ituploads.com/apple/macintosh-os-x-java-jdk/
    Can I do Java 6 development in OS X?...
    http://stackoverflow.com/questions/739418/can-i-do-java-6-development-in-os-x

  • How to run Java Card Program in a Simulator

    I m Narendra Reddy studying in India and have taken Java Card for my B.E. final year project.
    i also acquire knowledge of Whole Java Card Development Life Cycle but i found much more difficulties to implement those ideas into java card.
    so, Will you please do me a favour and give me a complete solution if possible with an example.
    i also want each step with the commands, from the creation of Class file to the running of prog. in simulator.
    it will be very useful for me to head towards my project.
    Thank you,

    Just for the record,
    Since we are looking at different possibilities, there are couple of ways to achieve simulation/testing environment for current Java Card,
    1. "The Java Card Workstation Development Environment(JCWDE) tool allows the simulated running of Java Card applet as if it were masked in ROM. It immulates Card environment." Although, as Joe mentioned, it does not support;
    - package installation
    - applet instance creation
    - persistent card state
    - firewall
    - transactions
    - transient array clearing
    - remote method invocation
    - applet/package deletion
    Thus you can use 'jcwde' tool in combination of apdutool to test some
    of the Applet behavior(& JCRE) but not all. You have realized this when you tried 'sample' applets.
    2. JCDK2.2 also provide c-reference implementation of the Java Card. This(cref) is more robust way to test Applet. Although the catch with this is that Sun does not have SCSL(Community Source Licensing) program for Java Card(alas!) and this means you can not mask your applet into this reference implementation unless you get hold of source code somehow(source licensing is one(costly) way)
    3. Buy reader/card and figure out how to install applet for
    testing purpose.
    4. Buy kit from JC vendor containing reader/software/cards and use it
    (costly and hard to find JC2.2 implementation)
    1 and 2 are easier but not a real life solution(how many cards with intel/sparc processor anyway?). 3 and 4 are ideal but other way challenging. Yes, probably solution-1 is the right for your purpose.
    regard,

  • What Java compiler for Java Card development ?

    What Java compiler and options should be used for Java Card development with the goal of generating correct, and (secondarily) small or/and fast code after conversion to Java Card bytecode using converter ?
    In particular
    - Is use of JDK 7 approved by Oracle for Java Card development? That would solve security problems associated with (the web components of the JRE of) some earlier JDK, including the latest JDK6. The JCDK 3.0.4 release notes states "+the commercial version of Java Development Kit (JDK software) version 6 Update 10 (JDK 6 Update 10) or later is required+, but that does not answer that question.
    - Anyone had _bad_ experience (like incorrect or disastrous code) with the Java compiler bundled with Eclipse ? I have seen at least one case where org.eclipse.jdt.core_3.7.3.v20120119-1537.jar produced slightly more compact code than javac.
    - Anyone had _bad_ experience with javac in jdk1.3 ? In an applet involving a "finally" clause, I've seen it generating more compact code than later javac (which in my test triplicated the code for the finally clause).

    What Java compiler and options should be used for Java Card development with the goal of generating correct, and (secondarily) small or/and fast code after conversion to Java Card bytecode using converter ?-target -source may be required to generate compatible byte code. Depending on the CAP file converter being used debug information may also help. Remember that Java Card is a subset of the Java language (also there are short opcodes that Java doesn't have etc) so a lot of the work for optimisation is done by the converter or the JCRE. You can look at the JCA code generated to determine what works best for your applets. There are also some ways of stripping out dead code etc from JCA files (return statements after a throw etc) to reduce your code size. Most of the speed optimisations come from your code (avoiding context switches and unnecessary security/access checks).
    The compactness of your Java Card binary may not be directly related to the size of your compiled Java code. It can depend on the converter you use and any optimisaitons the JCRE might try to do when the code is loaded.
    - Is use of JDK 7 approved by Oracle for Java Card development? That would solve security problems associated with (the web components of the JRE of) some earlier JDK, including the latest JDK6. Java Card does not use any of the libraries from the JDK/JRE. All of the libraries are provided by the JCRE on the smartcard.
    The JCDK 3.0.4 release notes states "+the commercial version of Java Development Kit (JDK software) version 6 Update 10 (JDK 6 Update 10) or later is required+, but that does not answer that question.Anything above JDK6u10 is supported. If you use Java 7 you may need to add a -source and -target flag when compiling.
    - Anyone had _bad_ experience (like incorrect or disastrous code) with the Java compiler bundled with Eclipse ? I have seen at least one case where org.eclipse.jdt.core_3.7.3.v20120119-1537.jar produced slightly more compact code than javac.We generally use the Eclipse compiler as we find that we get more deterministic builds. When CAP files are sent for security review it is helpful to have the reviewer able to generate a CAP file that matches the one you sent to confirm the binary is what you say it is.
    - Anyone had _bad_ experience with javac in jdk1.3 ? In an applet involving a "finally" clause, I've seen it generating more compact code than later javac (which in my test triplicated the code for the finally clause).We do not use anything less than Java 6 for compilation.
    - Shane

  • Source URL for Java Servlet Development Kit 2.0?

    Hi,
    Can anyone help me with the link for downloading Java Servlet Development Kit 2.0 ?
    thanks
    Shailesh

    This link (http://java.sun.com/products/servlet/download.html#specs) allows you to download version 2.2. If you really want version 2.0, see the note at the end of the page.

Maybe you are looking for

  • Problem faced when automating the P.O and P.O Release transactions

    Hi, I was trying to automate the Purchase Order and Purchase Order Release screen using ECATT tool. I recorded the Purchase Order screen by importing the Purchase Requisition Number. When i record the Purchase Order screen, the screen settings was di

  • To show Last Update Date(Date datatype) as per User Preferred TimeZone

    VO RuleSetVO.xml has a timestamp attribute LastUpdateDate.In UI,this VO is shown in table format and the last update date is shown in date format and there is QBE filter enabled on it. As there is a QBE enabled on last update date and our filltering

  • Problem with opening interactive forms

    Hi All, I configured the online/offline interactive forms web dynpro scenario on NW04s SP 09  and Adobe Reader 7.0.9. When I start my application in the portal, the following error message occurs in Adobe Reader: 'This document contained certain righ

  • Can I still upgrade from CS4 to CS5?

    I remember before that when Adobe released a new version of their software, that you were able to download the older versions for free (for a short period of time, I think). Now that Adobe is releasing CS6, is CS5 still available? I looked on the sit

  • User can edit only his own rows

    Hi, I have a simple generated application. I logged the user in the DB-table who has created the row. Now I want that all users can see all entries of the table (blackboard) and can create new entries, but the user can update only his own entries. Id