Results 1 to 6 of 6

Thread: How to load/install Java Card in the JAR form

  1. #1
    Join Date
    Apr 2010
    Posts
    71

    How to load/install Java Card in the JAR form

    I need to compile Java Card programs, use the Java compiler, javac, specifying the classpath libraries specific to Java Card (ie throwable.jar, jc20api.jar, and jcre.jar jcsimulation.jar ). Any use of methods, exceptions or classes outside of Java Card is detected during the compilation phase. Can anybody suugest me how to load/install Java Card in the JAR form. Thanks.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How to load/install Java Card in the JAR form

    The compiler javac, which has a parser adapted to Java and non Java Card can not guarantee that the compiled program is written in Java Card, as some syntax errors can not be detected. For this reason, Sun also provides Java libraries Card utility called a checker to verify if packages / applets written in Java and non Java Card. Its role is to detect the use of types or modifiers not supported, arithmetic operations and unauthorized classes, methods, or exceptions to non Java Card. This tool works on the byte code of the program (which is why it is impossible to give the line number where the error is located).

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: How to load/install Java Card in the JAR form

    It is a development environment provides tools to optimize and load applets (compiled with any compiler). Odyssey I (card name) complies with the Java Card API 2.0 specification and its FMV is one of the best performing market according Bull. Its component, developed by ST (formerly SGS Thomson) has been designed for the needs of open platforms and be adapted to new security mechanisms (secure access to partitioned areas of memory for a seal applications, authentication , integrity and confidentiality when loading applets; Cryptography).

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: How to load/install Java Card in the JAR form

    To use the classes used to communicate with our JavaCard, we must add the library apduio.jar (present in the folder C: \ JCDK \ java_card_kit-2_2_2 \ lib). To do this, right click on our new project and then Properties ... : In the section Java Build Path, select the tab Libraries and click on the button Add External Jars ... :Then select the file apduio.jar, validate and press the button OK.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to load/install Java Card in the JAR form

    The method install is called when installing the applet in the card. It instantiates MonApplet our class and register with the card system. The instantiation of other objects (new statement) is allowed only in this method (or in the constructor of the class). The method process is the main method of the applet. It will be called each time the card receives an APDU to the applet in question. The APDU received will be passed as a parameter of this method.

  6. #6
    Join Date
    Nov 2005
    Posts
    1,323

    Re: How to load/install Java Card in the JAR form

    Before starting the simulations, right click on the package MyPackage, select Java Card Tools and Generate Script. This results automatically generate APDU necessary to upload, instantiation (installation) and the selection of a JavaCard applet. monpackage.javacard then contains three scripts:

    * Cape download.script: upload applet
    * create-MonApplet.script: instantiation (installation) of the applet
    * selectmen MonApplet.script: selection of applet

Similar Threads

  1. Replies: 4
    Last Post: 30-01-2012, 06:12 PM
  2. How to Install Java Card CAP File into a Smart Card
    By mysalmon in forum Software Development
    Replies: 2
    Last Post: 22-09-2011, 12:01 PM
  3. Java card rmi install method parameters
    By Montana in forum Software Development
    Replies: 5
    Last Post: 23-07-2010, 05:28 AM
  4. Load Applet to Java card
    By Samara in forum Software Development
    Replies: 5
    Last Post: 21-07-2010, 04:21 AM
  5. How to Load Form with VB.NET
    By StudyBoy in forum Software Development
    Replies: 3
    Last Post: 02-03-2009, 01:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,050,120.70298 seconds with 17 queries