Installing the Eclipse Plug-in

The Eclipse Plug-in provides a convenient way to develop Java Card applets.

The Java Card Development Kit Eclipse Plug-in is available for download at https://www.oracle.com/java/java-card/. To install the Plug-in:

  1. Download the Java Card Development Kit Eclipse Plug-in archive file to a directory of your choice. It is available in a .zip file for both Windows and Linux.
    • java_card_devkit_eclipse_plugin-bin-v[version]-<buildID>-<dd-mmm-yyy>.zip
  2. Extract the downloaded archive file to the directory of your choice.
  3. In the Eclipse menu bar, select Help, and then select Install New Software.
  4. Click Add.
  5. Click Archive.
  6. Select the Eclipse Plug-in zip file.
  7. In the Add Repository dialog, type Java Card SDK in the Name field.
  8. Click Add.
  9. On the Available Software dialog, select the feature to install:

    Java Card 3 Platform Development Kit

    Note:

    If you don’t see any items and the message There are no categorized items appears, then you must uncheck the Group items by category checkbox.
  10. Click Next until the terms of the licenses are displayed.
  11. Please read and accept the terms of the licenses and click Finish to complete installation.
  12. When the software has been installed, Eclipse will prompt you to restart. Click Yes.
  13. The Eclipse Plug-in has module dependencies. To provide these dependencies to Eclipse, you must edit the eclipse.ini file, which can be found inside the Eclipse installation folder. The following two lines must be added after -vmargs:
    • On Linux:
      --module-path=<absolute-path-to-jc-simulator>/client/AMService/amservice.jar:/<absolute-path-to-jc-simulator>/client/COMService/extension.jar:/<absolute-path-to-jc-simulator>/client/COMService/socketprovider.jar 
      --add-modules=ALL-MODULE-PATH

      Please be sure that the LD_LIBRARY_PATH environment variable is set to the OpenSSL library location before running Eclipse.

    • On Windows:
      --module-path=<absolute-path-to-jc-simulator>\client\AMService\amservice.jar;\<absolute-path-to-jc-simulator>\client\COMService\extension.jar;\<absolute-path-to-jc-simulator>\client\COMService\socketprovider.jar 
      --add-modules=ALL-MODULE-PATH

Note:

Be sure to change <absolute-path-to-jc-home-simulator> to the fully qualified installation path of the Java Card Simulator.
Continue to Configuring Sample_Platform and Sample_Device.