Java Card Manager - plugin detail

Tool that provides functionality to manage content loaded on smart cards of Java Card technology. Contains APDU manager which enables sending of APDU commands to card or JCWDE simulator. So you can communicate with cards and applets (as well as those running in simulator) from your favorite NetBeans IDE.

NetBeans Plugin - Java Card Manager
Plugin owner: vlasakcz
Website:
Added: 2008-07-01
License: freeware
Category:
Downloaded: 6,910 times
Rating:
 4.25, by 4 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.17 MB   Last Update: 2008-07-01

What's new in this version



Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.17 MB   Last Update: 2008-07-01

What's new in this version



Verifications for NetBeans versions

6.0 verification PENDING See verification details


Introduction

Java Card Manager is a plug-in that enables to send APDU commands to Java card or Java card simulator and provides the functionality for basic card content management (installing applets, loading and deleting load files).

After the installation of Java Card Manager plug-in a node called 'Java Cards' is added to the tree located on the 'Services' tab. Using this node it is possible to display cards connected to PC. Throug Java Card nodes it is posible to send APDU commands to card, browse card content, load content to the card or open secure channel with applets on the card.

Java Card Manager plug-in supports Open Platform 2.0.1 specification. Plug-in has been tested with GemXpresso cards. Every feedback about using this plug-in with card of different type or vendor is welcomed.

Simple user guide for plug-in is available for download.

Plug-in uses library (as NetBeans library wrapper) called SimpleSmartCardAPI. This library has been developed to simplify access to card and brings more object oriented way how to communicate with card or applet or simulator. SimpleSmartCardAPI depends on javax.smartcardio package from JDK 1.6 so 1.6 version of Java is necessary for installing Java Card Manager plug-in (JDK version check is made during installation of plug-in).

Binary distribution of SimpleSmartCardAPI is available here and documentation in JavaDoc is available here.

Source code of SimpleSmartCardAPI library can be downloaded on this location.

Source code of Java Card Manager plug-in can be downloaded here.

For successful install of this plug-in It is necessary to install both .nbms included in .zip file.

Note about future versions:
There is a lot of space to extend the functionality of this plug-in. Future versions of plug-in can add new function like GlobalPlatform support, support card manager keys management, support for managing security domains, etc. Beside that Java Card Project type plug-in is in development and experimental version with basic functions (applet templates, conversion to .cap file, run applet in simulator,...) has been already done. Probably I'll upload it here in the near future too.

[ You have to be logged in to be able to comment. ]

User Comments

  

Great!!!

I have downloaded successfully and working fine ..

Anna
CEO at http://www.flarian.ae/
Posted by anna123 on Feb 02, 2016
  

SimpleSmartCardAPI

Hello, I would like to know wheather there is some licence for SimpleSmartCardAPI?
Posted by martinslama on Apr 01, 2009
  

USB Card Reader

Hello. I use a USB card reader (GemPCTwin) but the plugin not recognizes him. Any idea with this problem ????
Posted by penovales on Dec 11, 2008
  

Problem charging .cap file

Hello. I was trying to charge and install a .cap file and I got this error:

java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:114)
at java.util.jar.JarFile.(JarFile.java:133)
at java.util.jar.JarFile.(JarFile.java:70)
at org.netbeans.modules.javacardmanager.actions.OpenInstallForLoadDialogAction$InstallForLoadDialogDisplayer$1.actionPerformed(OpenInstallForLoadDialogAction.java:110)
at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1137)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1039)
at java.awt.Dialog$3.run(Dialog.java:1091)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1089)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
at org.openide.util.Mutex$1AWTWorker.run(Mutex.java:1370)
[catch] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Any idea ???
Posted by penovales on Dec 11, 2008
  

Java Card Simulator

Hello. I installed the plugins succesfully. I use NetBeans 6.5, jdk 1.6 and JCDK 2.2.2. But when i trying start simulator, i get this error "Cannot connect to simulator. Cause: Exception during creating JavaCardSimulatorAdapter".
Help please.
Posted by penovales on Dec 10, 2008
  

Java Card Project

Hi,

I installed the plugins needed in order to use java card manager and java card project. I have an error when i use convert.
I would like to know what verision of java card kit are you using. (I am using 2.2.2).

I am using Mac Os as well, I succeeded installing the plugins but I have error if I want to run or convert. Any advice??
Posted by lftt on Aug 15, 2008
  

Problem with start of Java Card Simulator.

Hi. I downloaded and successfully instaled plugin. But keep getting error " Exception during creating JavaCardSimulatorAdapter" when trying start simulator. Any idea why this happends. Tnx.
Posted by jaremija on Aug 09, 2008
  

Re: Create JavaCard Applet

Ok, i downloaded it, but when i tryed to install it, there is some error:

Missing required modules for Plugin JavaCardProject:
Java SE Projects [module org.netbeans.modules.java.j2seproject/1 = 45]
Posted by radchen on Aug 01, 2008
  

Re: Create JavaCard Applet

Now i download NetBeans 6.1 and plugin is working.
Posted by radchen on Aug 01, 2008
  

Re: Create JavaCard Applet

I have NetBeans 6.0.1 version.
Posted by radchen on Aug 01, 2008
  

Re: Create JavaCard Applet

radchen: Please, can you tell me what version of NetBeans do you have?

Well, this error is one of the reasons why I haven't uploaded it officially yet - the module has dependence on internal NB modules so there can occur such problems with dependencies.
Posted by vlasakcz on Aug 01, 2008
  

Re: Create JavaCard Applet

Hello, radchen.

The plug-in published here is Java Card Manager. It has not the project type functionality.

In my latest comment here, I've mentioned Java Card Project plug-in. I haven't published it on plug-in portal here yet (because it is not fully completed), however you can download it on:

http://members.sigil.cz/vlasak/jc/org-netbeans-modules-javacardproject.nbm

Check my last comment here, there are some tips how to use this Java Card Project plug-in.
Posted by vlasakcz on Jul 31, 2008
  

Create JavaCard Applet

After i installed this plug-in i didnt see a Java Card Project in Create New Project window. What shall i do?
Posted by radchen on Jul 31, 2008
  

Re: How to create an Java Card Applet

Hi, I will try to start with a brief and simple description of Java card applet development process.



First, you will write code of the new applet. Then the code is compiled to .class file(s). After that the .class files are converted into .cap file. Cap format is used as a container for applet that will be loaded to card (and during the conversion several security checks of code are done). Class or .cap files can be run in card simulator (JCWDE for class or CREF for .cap).



Convertor and simulator tool are included in Java Card Development kit. For compliling is used normal javac.



Now you have converted applet prepared for the loading to the card. This process follows Open/Global platform specification and it must be performed by tools that are not included in Java Card Development kit. Such tool is gpshell, for instance, or Java Card manager plug-in.



So by this plug-in you can get the .cap file of applet to the card. Or delete loaded applet on the card... Or communicate with applet on the card or simulator via APDU manager component. This plug-in does nothing with applet creation.



For applet development I can recommend this tutorials:



An Introduction to Java Card Technology
Writing a Java Card Applet/



or book Java Card Technology for Smart Cards by Zhiqun Chen



or topic on java.sun.com forums.



As I've written in owner's notes I made a plug-in that helps with applet creation. It is not finished, has some unfinished parts (for example, cannot convert with use of different export files than those from Java Card Development kit).



You can download this plug-in (Java Card Project type) here. Java Card Manager 1.4 is needed as dependency. With latest NetBeans 6.1 the plug-in should be installed correctly.



After installing of this plug-in 'New Project' dialog will contain Java Card Project type.



During the process of creation of the project you can set several applet and Java Card settings (as well as via Java Card Project Properties menu item in project context menu /right-click on project name in Project tab/). These settings are applet/package AID and name and paths to Java Card Development kit. If you use 'Browse...' button from 'Java Card API Location' item to locate file with Java Card platform API (api.jar, api21.jar,... differs for different versions of Java Card Development kit), the plug-in will try to fill other three paths.



With new project a skeleton code of Java Card applet is created. You can compile this code (normal build), convert class files through 'Convert' menu item from project's context menu and run compiled applet in JCWDE simulator via 'Run in JCWDE' menu item from project's context menu. The plug-in uses tools from Java Card Development kit.



For example, with this plug-in you can create applet code, compile it, run it in simulator and by Java Card manager plug-in you can connect to the running simulator and send applet some commands.

Posted by vlasakcz on Jul 12, 2008
  

How to create an Java Card Applet

Hi, I am new in the Java Card world and I want to use your plugin because it seams to be interesting. I want to know how to create a new Applet, and how to incorporate the Java Card Kit 2.2.2 from sun.
Posted by lftt on Jul 11, 2008
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo