JavaCard Development Environment for Eclipse


Original Version can be downloaded from http://eclipse-jcde.sourceforge.net

Extended Version 2 can be downloaded from the link below.

eclipse-jcde-2

NOTE: RENAME THE FILE FROM .PDF to .ZIP

JavaCard 3 Specifications (April 2008) can be downloaded from here

Source SVN will be added soon.

Added Enhancements and Fixes for version 2:
__________________________________________

Version Info. 2

Tools:
——-

The new “Java Card Applet” wizard is used to automate the creation process of a Java Card Applet, and to allow the developer to enter the applet’s AID to be stored in the project’s workspace. The AID is required for generating CAP files and APDU scripts, and for installing the applet on a simulator for testing.

Added support for Java Card RMI (Remote Method Invocation) and for Shareable Interfaces, optional generation of sample code for both features as well. Use this feature when making a new project.

TODO: Add a refactor method for RMI Code Generation Template.

Added “Set Package AID” to allow setting the AID of a selected package. The AID should be used later on while generating CAP files and APDU scripts and while installing the package on a simulator.

TODO: A more mature script editing interface. At the moment the cap conversion script is silently generated in the backend and hidden from the user.

Added “Convert” is a tool that wraps a command line tool provided by Sun Microsystems to allow converting a Java Card package into a CAP file. The tool also optionally generates a EXP file and a JCA file. The CAP file is a JAR-format file which contains the executable binary representation of the classes in a package. A EXP file is a Java Card export file that contains the public API linking information of classes in a package. A JCA file is a Java Card assembly file, which could be used to regenerate a CAP file.

“Generate Script” is a tool that wraps a command line tool provided by Sun Microsystems to allow generating Java Card package and applet installation APDU scripts. Extra APDU script lines have been automatically added to the script generated by Sun’s tool to make it more feasible for direct running on a simulator. The Generate Script popup menu item appears after right clicking a Java Card package, a Java Card applet or a CAP file.

TODO: Extend the form to show the applet firewall simulation. (GUI)

“Run Script” is a tool that wraps a command line tool provided by Sun Microsystems to allow sending the APDU commands of an APDU script file to a simulator.

Simulators used:
—————–

1. “CREF” is a JCRE reference implementation written in C-language provided by Sun Microsystems. It is a simulator that is much like a real Java Card technology-based implementation but it does not support running Java Card applications in debug mode. CREF is wrapped inside EclipseJCDE to automate the process of starting it, sending arguments to it according to the stored preferences and stopping it. The preferences are now stored in the project’s workspace and are used to construct the arguments that will be sent to the simulator while starting.

2. “JCWDE” or Java Card Workstation Development Environment is another simulator provided by Sun Microsystems. It supports running Java Card applications in debug mode. It is a java application that emulates the JCRE but lacks some of its features. JCWDE is wrapped inside this plugin to automate the process of starting it in normal or debug mode, sending arguments to it according to the stored preferences and stopping it.

Validations
————-

“Applet AID validation”: Checks every Java Card applet in a Java Card project for the existence of applet AID.
“Package AID validation”: Checks every package in a Java Card project for the existence of package AID.

Added “Duplicate AID validation”: Checks every Java Card project for the inexistence of duplicate AIDs.

TODO: Add Support and features from JC3

Comments
  1. ilkay says:

    hi,

    I am newbie to Javacard. I do not know where to develop project and how to send a certificate to the javacard enabled smart card. Could you possibly help me about the way that I go?

  2. tam says:

    can you guide me how to create my project and run demo by java applet? i am writing simuling about java card. thanks you very much1

  3. minh142 says:

    great post for java card newbie

  4. Ramanan Satha says:

    I’m now mastering in Java card development. But this blog was the starting point for me, which made the whole development and debugging much easier. Earlier I was using the default command line interface, and I didn’t know the existence of a eclipse plugin.
    Thanks dude.. :)

  5. Ricardo Rodrigues says:

    Hy…starting out with Java Cards, having at the moment problems with UserException.

    Something similar occurred there?

    Thanks

  6. Alberto Zigoni says:

    Hi,

    thanks for your excellent plugin.
    Is there any way to make it work with Java Card 2.2.1? Ehen I try to point it to this version, the preferences dialog shows an error about converter.jar version not being compatible.

    Thanks

    • NdK says:

      Apart that the file seems no more available, I fear I’ll have the same problem: I have to replace Aventra’s app with my own and the card is JC 2.2.2…

  7. Seyi says:

    I’m trying to add javacard 3 to netbeans 6.8 or even eclipse and I don’t seem to be successful. guide me to useful links and resources for newbies on programming javacards/j2me apps and setups

  8. joesmo says:

    I am a newbie in javacard application but want to develop an application in javacard as my final year project. I am using eclipse 3.2 , Eclipse jcde 2 and javacard 2.2.2. I tried to run the purse rmi sample in the javacard 2.2.2 and i get applet selection failed. I don’t know what to do so i humbly ask for your help. please help me at least to run the sample rmi. thanks in advance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s