Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Including new Packages

JavaCard Applet Development Related Questions and Answers.
mainakanyi
Posts: 20
Joined: Mon Nov 28, 2016 9:13 am
Points :90
Contact:

Re: Including new Packages

Post by mainakanyi » Wed Nov 30, 2016 2:20 am

UNKNwYSHSA wrote:Two point:
1 Don't take attention to the install parameters, the parameters is not used in the "install" method from your source code;
2 Change your applet AID and try again:

Code: Select all

    Package AID: 04 02 05 07 08 05 03 00 11 07 08 05 04 03 02
    Applet class AID: 04 02 05 07 08 05 03 00 11 07 00 30 50 40 30 20
    Instance AID: 04 02 05 07 08 05 03 00 11 07 00 30 50 40 30 20
Change AID to:

Code: Select all

    Package AID: 04 02 05 07 08 05 03 00 11 07
    Applet class AID: 04 02 05 07 08 05 03 00 11 07 00 30 50 40 30 20
    Instance AID: 04 02 05 07 08 05 03 00 11 07 00 30 50 40 30 20
Maybe the problem is that the applet AID is not startswith package AID.


Hello, how do I create an instance AID?

JCIDE is only generating package and class AID. For the instance AID, I am using the same class AID.

How can I generate an instance AID?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Including new Packages

Post by UNKNwYSHSA » Wed Nov 30, 2016 3:11 am

In the "Install Applet" dialog, input instance AID into "Applet Instance AID" field. Normally, it is automatically filled same as Applet AID.
sense and simplicity

mainakanyi
Posts: 20
Joined: Mon Nov 28, 2016 9:13 am
Points :90
Contact:

Re: Including new Packages

Post by mainakanyi » Wed Nov 30, 2016 7:36 am

UNKNwYSHSA wrote:In the "Install Applet" dialog, input instance AID into "Applet Instance AID" field. Normally, it is automatically filled same as Applet AID.


How can you help me remotely? Still not working.

Teamviewer ?

Skype: james.frankird

Thanks

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Including new Packages

Post by UNKNwYSHSA » Sun Dec 04, 2016 3:15 am

Can I apply for a SIM card (SkySim) from GD (Giesecke & Devrient)?
sense and simplicity

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2324
Contact:

Re: Including new Packages

Post by tay00000 » Sun Dec 04, 2016 8:42 am

UNKNwYSHSA wrote:an I apply for a SIM card (SkySim) from GD (Giesecke & Devrient)?


Is it even possible to purchase G&D cards directly from G&D ? I have never successfully purchased any directly from G&D, Gemalto and so on.

If you successfully purchased G&D cards, I would like to get some too.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Including new Packages

Post by UNKNwYSHSA » Sun Dec 04, 2016 9:13 am

OK, Let me try once.
sense and simplicity

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2324
Contact:

Re: Including new Packages

Post by tay00000 » Sun Dec 04, 2016 11:26 pm

Thank you. If you succeed, do recommend JavaCardOS to stock up some in their store so that the community will have something new to experiment with as well.

mainakanyi
Posts: 20
Joined: Mon Nov 28, 2016 9:13 am
Points :90
Contact:

Re: Including new Packages

Post by mainakanyi » Mon Dec 05, 2016 1:46 am

tay00000 wrote:Thank you. If you succeed, do recommend JavaCardOS to stock up some in their store so that the community will have something new to experiment with as well.


Hello, I tried getting one directly, but I did not succeed.

Thanks

userjcide
Posts: 1
Joined: Mon Nov 27, 2017 3:08 pm
Points :292
Contact:

Re: Including new Packages

Post by userjcide » Sat Oct 27, 2018 7:37 am

UNKNwYSHSA wrote:
Fri Sep 11, 2015 11:33 pm
I have a test to create an javacard applet use JCIDE.
1 (Optional step), unzip the jar to %JCKIT_INSTALL_DIR%\SDK\Tools\JCIDE\apis\jc222, this is for the code auto-complete;
2 JCIDE main menu -> Build -> Property -> Local JCKit configurations:
A Add sim.jar to the -classpath item in "java.exe option";
set-classpath.png
B Add stk export file dir path to -exportpath item in "JCKit Option";
set-export-path.png
3 I found the hello world code in the ToolkitInterface.java; Copy the code as my helloStk code; Code as following:

Code: Select all

package helloStk;

import javacard.framework.*;
import sim.toolkit.*;

 //
 // The HelloWorld class is a simple Toolkit applet, which may be used as an
 // example to show how such an applet will be installed and registered and
 // how it will be triggered.
 //
 public class helloStk extends Applet implements ToolkitInterface,ToolkitConstants {
     // data fields
     private static final byte CMD_QUALIFIER = (byte)0x80;
     private byte[] menuEntry = {'S','e','r','v','i','c','e','1'};
     private byte[] textBuf = {'H','e','l','l','o',' ','w','o','r','l','d',' ','!'};
     private ToolkitRegistry reg;
     //
     // Constructor of applet
     //
     public helloStk() {
         // get a Registry object...
         // ...and initialize it according to the applet characteristics
         reg.initMenuEntry(menuEntry, (short)0, (short)menuEntry.length, PRO_CMD_DISPLAY_TEXT, false, (byte) 0, (short) 0);
     }
     //
     // Install method
     // *param bArray the array containing installation parameters
     // *param bOffset the starting offset in bArray
     // *param bLength the length in bytes of the parameter data in bArray
     //
     public static void install(byte bArray[], short bOffset, byte bLength) throws ISOException {
         // create and register applet
    	 helloStk HelloWorldApplet = new helloStk();
         HelloWorldApplet.register();
     }
     //
     // Process toolkit events
     // *param event the type of event to be processed
     // *exception ToolkitException
     //
     public void processToolkit(byte event) throws ToolkitException {
         // get the ProactiveHandler system instance
         ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();

         if (event == EVENT_MENU_SELECTION) {
             // prepare a Display Text command
             proHdlr.init((byte) PRO_CMD_DISPLAY_TEXT, (byte)CMD_QUALIFIER, (byte)0x02);
             proHdlr.appendTLV((byte)(TAG_TEXT_STRING | TAG_SET_CR), textBuf,
                              (short)0, (short)textBuf.length);
             proHdlr.send();
         }
     }
     
	@Override
	public void process(APDU apdu) throws ISOException {
		// TODO Auto-generated method stub
		
	}
 }
4 Build the project, that's OK.

You can have a test of this applet on your card, it's run normal or not? Wait your message.
Hello,
Does it work for UICC api ( I meant ETSI 102 241 ).
I got this error when loading exp file from the ETSI folder.

Feitian Java Card 2.2.2 Class File Converter, Version 1.3
error: export file toolkit.exp of package uicc.toolkit not found.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 33 guests

JavaCard OS : Disclaimer