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

Similar Messages

  • 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)

  • 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

    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.

  • 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.

  • 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%

  • 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).

  • 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

  • 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.                                                                                                                                                                                                                                                                                                   

  • 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.

  • Is the Java Card Platform supports the unnamed package?

    1.agree
    Virtual Machine Specification for the Java Card� Platform, Version 2.2.1 chapter 2.2.2.1:
    "packages in the Java Card platform are used exactly the way they are in the Java platform."
    That means the Java Card platform also have two type package,named package and unnamed package.
    2.against
    Development Kit User�s Guide for the Java Card Platform, Version 2.2.1 chapter Running the Converter:
    "Command line usage of the Converter is:
    converter [ options] <package_name> < package_aid> < major_version>.
    < minor_version>"
    The above formula tells us that the <package_name> is a MUST Line Arguments of converter.But if we create a unnamed package,how should we express it?
    3.against
    first,How a real JCVM intall/organize the unnamed packages?
    second,In a real JCVM run-time environment,all java items(include attribute,method and soon) refered by the suit of package+class+item.In this condition,the item in a nunamed package cannot offers the package and is never refered.
    I have been botherd by the above 3 boresome and opposite points for some time and cannot give out the key of the question.
    Can some one give me some ideas?
    thx!

    Sun's kit is free. There is a reference implementation of the JC Runtime environment with the kit.
    You of course can't load that onto a card. And even if you had the RE, you won't be able to load onto a card because the RE is burned into the ROM which you don't have low level access to.
    Read the JCRE specs that come with the kit

  • 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

  • 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

  • Running the Java Card 2.1.2 Development on win98

    Hi,
    I just installed the Java Card(TM) Development Kit Version 2.1.2 on my windows 98 OS with jdk 1.3.1.
    I set all the Environment Variables for Windows.
    I also compiled the demos, but I'm unable to run the apdutool. I get a "Bad command or file name".
    I read in the readme file that one of the Supported Platforms is Windows NT 4.0 , but it doesn't say windows 98, can this be my problem ? do I have to reinstall my computer with window NT to develop a java card applet ? can I use windows 2000 ?

    Hello.No, there is no need to test this toolkit under Windows 2000.It supposed that this packages is working under Windows 98.
    I think the problem is that you did not set right the PATH and CLASSPATH of the JC 2.1.2 in the autoexec.Try the followings(see if it is working):
    ///PATH
    set PATH=c:\jc212\bin;%PATH%
    if the jc212 is the directory that you installed this package.
    ///CLASSPATH
    set CLASSPATH=%CLASSPATH%;C:\jc212\lib\api21.jar
    set CLASSPATH=%CLASSPATH%;c:\jc212\lib\converter.jar
    If you still have problems try to add te following line in the autoexec.bat
    set CLASSPATH=%CLASSPATH%;c:\jc212\samples
    I think this will help you.

Maybe you are looking for

  • How do I apply SAP's mantra, "Run Like a Factory" to my Basis/Security team?

    I will preface this by stating that I am a newbie to SAP, and I am not technical. Currently I manage a Basis/Security team, albeit understaffed. For the past 5 years I have been charged to: Organize the team into a highly-performing department. (Done

  • ITunes has stopped working message after having it open for one minute.

    It's fully updated to iOS 5 and was working fine until now. Running on Windows 7 and worked flawlessly till this point. Any tips? I already uninstalled and reinstalled. Only security software I run is Microdoft Security Essesntials and that has never

  • CHUD on a dual processor MDD running Leopard (10.5.8)

    I finally got around to installing CHUD today and am wondering if some of you folks who have used it for a while might have some easy answers to a few questions. I first tried version 3.5.2. It installed, but I couldn't adjust any of the settings. I

  • IPhoto 9.6 hangs when importing raw files.

    since upgrading to Yosemite and upgrading iPhoto my macbook pro hangs every time I try to import photos from an SD card. I can import one or two but if I try to import new photos ~300 photos then the kernel task memory usage shoots up to use 95% or m

  • Using a derived table name in a select ...

    In SQL or PL/SQL am I able to use the derived value of a colu,n (which holds a table name) to run an SQL. Basically I want to perform a "select count(*) from table" where table is a list of tables held in another, eg all_tables. EG: all_tables has TA