S. Bouzefrane. How to set up the Java Card development environment under Windows? Samia Bouzefrane. samia.bouzefrane@cnam.fr



Similar documents
Fahim Uddin 1. Java SDK

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

To add files to your , first create the . When you have opened a new

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Managing Contacts in Outlook

Eclipse installation, configuration and operation

How to Install Eclipse. Windows

Distributing SMS v2.0

ScanShell.Net Install Guide

Application Development Setup Guide

Supplement I.B: Installing and Configuring JDK 1.6

Installing Eclipse C++ for Windows

Browser Client 2.0 Admin Guide

Student Data Capture System (SDSC)

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

SOFTWARE INSTALLATION INSTRUCTIONS

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

Printing Bar Code and RFID Labels from Oracle

NetVanta Unified Communications Server Backup and Restore Procedures

Installing the Android SDK

Installing (1.8.7) 9/2/ Installing jgrasp

Introduction to Android Development

Upgrading Your PhoneTree Software

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

Software Installation Requirements

Installing SEC2KAS client software installation manual

ContentWatch Auto Deployment Tool

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Technical Bulletin. SQL Express Backup Utility

COMBOGARDPRO. 39E Electronic Combination Lock SOFTWARE INSTALLATION INSTRUCTIONS

How to Install CS OrthoTrac on a New Server and Copy the Data from the Old Server to the New Version 12 and higher

Using. Microsoft Virtual PC. Page 1

Promap V4 ActiveX MSI File

Using ProjectWise Explorer for File Transfer

Printer Sharing of the PT-9500pc in a Windows Environment


Virtual Office Remote Installation Guide

Creating a Java application using Perfect Developer and the Java Develo...

Network Printing In Windows 95/98/ME

FileMaker 8. Installing FileMaker 8 ODBC and JDBC Client Drivers

For Introduction to Java Programming, 5E By Y. Daniel Liang

SARANGSoft WinBackup Business v2.5 Client Installation Guide

Lab: Data Backup and Recovery in Windows XP

DigitalPersona Pro Server for Active Directory v4.x Quick Start Installation Guide

To install the SMTP service:

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

ACTIVE DIRECTORY DEPLOYMENT

Setting up Sudoku example on Android Studio

Installation Instruction STATISTICA Enterprise Small Business

Getting Started with Android Development

How to Create an Android Application using Eclipse on Windows 7

Configure SPLM 2012 on Windows 7 Laptop

Supplement I.B: Installing and Configuring JDK 1.6

How To Configure CU*BASE Encryption

VirtualXP Users Guide

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

PnP Driver Installation

SAS 9.3 Foundation for Microsoft Windows

WA Continuous Integration with Jenkins- CI, Maven and Nexus. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

GeneMapper Software v.4.1 Uninstall Procedure

Shakambaree Technologies Pvt. Ltd.

Xactimate v.27 Network Installation

Lab - Data Backup and Recovery in Windows XP

FAQ - What is an E-Transmittal?

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

Using SQL Developer. Copyright 2008, Oracle. All rights reserved.

Moxa Device Manager 2.3 User s Manual

VPN: Installing the IPSec client

Pocket ESA Network Server Installation

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

ScanWin Installation and Windows 7-64 bit operating system

Sage Peachtree Installation Instructions

CODESOFT Installation Scenarios

SWCS 4.2 Client Configuration Users Guide Revision /26/2012 Solatech, Inc.

Using Remote Web Workplace Version 1.01

Installation Guide v3.0

Guide to Installing BBL Crystal MIND on Windows 7

Installing the Microsoft Network Driver Interface

How to use the Eclipse IDE for Java Application Development

Printer Support Guide. FedEx Ship Manager Software

STIDistrict Server Replacement

Census. di Monitoring Installation User s Guide

Citrix Shared Desktop

Sync Tool for Clarion NX700/NX509/NP509 Series

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

USB DRIVER INSTALLATION GUIDE

BitLocker To Go User Guide

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Installing the USB driver for Firmware 7 or later For use with E-blocks programmer boards and PICmicro Development boards.

Jenkins on Windows with StreamBase

5.6.3 Lab: Registry Backup and Recovery in Windows XP

Chapter 1 Downloading Images to Your Computer (Windows)

VPN Remote Access Installation and Configuration Guide Operating System: Windows (XP, Vista, 7 and 8)

Horizon Debt Collect. User s and Administrator s Guide

Beginning with SubclipseSVN

Personal Folders Backup

IBM Bluemix Tutorial Connecting Eclipse to Bluemix v2.0

Transcription:

How to set up the Java Card development environment under Windows? Samia Bouzefrane samia.bouzefrane@cnam.fr 1 Java Card Classic Edition- August 2012

I. Development tools I.1. Hardware 1. A Java Card platform (Java smart card). 2. A card reader. I.2. Software a) Download and install JDK 1.7 (use this link to download: http://www.oracle.com/technetwork/java/javase/downloads/jdk7- downloads-1637583.html ). b) Download Eclipse IDE for Java Developers (http://www.eclipse.org/downloads/ ). c) Download the file JSR268TK.zip from: (http://cedric.cnam.fr/~bouzefra/cours/cours_sem/jsr268tk.zip ) and store it in a local folder. This file is an eclipse project that includes some tools used to install the application on the card. d) Install if necessary the driver of the card reader. If you use Windows 7, the card reader is detected automatically by the operating system. If you use Windows XP for example, you need to install the driver from a CD or Internet. II. Development steps II.1 import the eclipse project: a) Unzip the project that is stored in this folder for example: C:\JavaCard\JSR268TK.zip. b) Launch Eclipse. c) Import the eclipse project C:\JavaCard\JSR268TK\JSR268TK\JSR268TK-2 as in the following : File Import General Existing Project into WorkSpace Browse In our example, we import the following folder: C:\JavaCard\JSR268TK\JSR268TK-2. Choose the folder JSR268TK-2 and click OK. These steps are shown through the following windows: 2 Java Card Classic Edition- August 2012

Click on the menu File and then on Import item. Click on + that is near General Click on Existing Projects into Workspace 3 Java Card Classic Edition- August 2012

Click on Browse, find the folder JSR268TK-2 and click on OK. Click on Finish 4 Java Card Classic Edition- August 2012

You must have this window. To show the packages of JSR268TK-2 project, click on +. In the following window, you have different parts of the project. It includes some scripts (tools) necessary to install an applet and then to interact with it from the terminal. 5 Java Card Classic Edition- August 2012

build.xml: includes three scripts deleter: to delete an existing applet. loader: to load an applet into the card. run: to launch a program running in the terminal. ManagerConfig.xml: allows to configure the card reader by inserting its name in this xml file. SampleTestApplet.java: contains the applet Build.xml : compiles SampleTestApplet.java and generates the file SampleTestApplet.cap tha will be installed on the card. This file contains the AID of the applet and the one of the package to which belongs the applet. SampleClient.java : is the Java program that interacts with the card from the terminal 6 Java Card Classic Edition- August 2012

II.2 Configuration and implementation steps : a) Modify ManagerConfig.xml file but typing the appropriate card-reader name. b) Write the program of the applet (SampleTestApplet.java). c) Compile the applet. d) Write the program of the terminal (SampleClient.java). e) Install the applet on the card and launch the client on the terminal. a) Configuration of ManagerConfig.xml - The first step consists in modifying the file ManagerConfig.xml by inserting the name of the card reader. For this purpose, you need to find the exact name of the reader by accessing to the register base. We obtain it as in the following: Start Button Execute Type: regedit The name of the card reader is found in the following path: Click on «+» behind Hkey local machine + software + Microsoft + cryptography + calais + readers Double-click on Device Drug and drop the name (clrt/c, ctrl/v) 7 Java Card Classic Edition- August 2012

- Double-click on the file ManagerConfig.xml to open it and to insert the name of the card reader. - Save the modifications with Ctrl/S. Put the name of the CAD between </cad> and </cad> without adding spaces between the tags. Here is a list of the names of CADs in comments. 8 Java Card Classic Edition- August 2012

b) Write the code of the applet SampleTestApplet.java. Double-click on the file SampleTestApplet.java to open it. You have an example integrated with the project JSR268TK-2, but you can modify the integrated code. In this case, you need to save the new code with Ctrl/S. Here is the applet to possibly modify SampleApplet.java declaration of constants Methods: install(), select(), deselect(). Method process(): deals with APDU commands According to the INS code, a method is triggered. Implementation of the methods. If you click on «+» near jsr268.sampleapplet, you find three files: - SampleTestApplet.java : is the applet to install on the card - Appletconfig.xml : is used to configure the card (don t modify it). - build.xml : contains the AID of the applet and the AID of the package. It is used to generate the CAP file that will be installed on the card. c) Compile the applet To compile the applet, perform the following steps: - Right-click on the file build.xml 9 Java Card Classic Edition- August 2012

- Select Run As - Click on Ant Build If there is no error, a CAP file is generated from SampleTestApplet.java. It remains only to load the file on the card and to run the client. d) Write the client program (terminal): -Double-click on the file SampleClient.java to open it. - You have the following window: 10 Java Card Classic Edition- August 2012

Declaration of constants Declaration of the applet AID To compile and run the client: -Click on «+» near jsr268.sampleclient. - Right-click on the file SampleClient.java. - Select Run As. - Click on Java Application. 11 Java Card Classic Edition- August 2012

At this stage, check only if the compilation is correct because the execution will generate errors since that the applet is not yet installed. e) Installation of the applet on the card - To load the CAP file on the card: Click on «+» near the package bin. Right-click on the file build.xml Select Run As Click on Ant Build 12 Java Card Classic Edition- August 2012

- The file build.xml will execute three scripts to: delete : delete the applet if it already exists in the card. load : install the CAP file generated from SampleTestApplet.java. run : run the client SampleClient.java to send APDU commands to the applet. Each time the applet is modified, it needs recompilation and installation on the card. 13 Java Card Classic Edition- August 2012

14 Java Card Classic Edition- August 2012