Auto start Java Card application

Hello,
is it possible to start a Java Card application from the SIM card right after the mobile is switched on?
I talked to a guy from a SIM card manufacturer and he told me it's possible since the device checks on start if a Java Card application is present to display it in the phone's menu, but it's device dependant how it's done and if the application really will be started (which sounds kind of strange).
Can someone give me more details if it's possible to auto start a application and how it's done ( code snippet would be great ; )?
Thanks in advance,
teric

The first event after ME startup, which STK applet could catch is Terminal Profile.
So, in applet class constructor should be smthng like
ToolkitRegistry reg = ToolkitRegistry.getEntry();
reg.setEvent(EVENT_PROFILE_DOWNLOAD);
and applet will trigger on Terminal Profile arrival.

Similar Messages

  • How to start java card development?

    Good Evening all,
    I am novice for java card development , from last some days I study java card and terms related to it, now i have some knowledge about applets , and API. as i read about java card 2 and 3, I think i moved to java card 2 that's why i download jcdk 2.1.
    Now i want to do something in development rather than further conceptual study. Frankly speaking I m confused where to move because different sites have different point of view so i want to execute my knowledge which i earned from last some days...
    so I want to ask
    1- which IDE would be best for java card development? { eclipse or net beans or something other}
    2- what things i would be require during java card application?{ java sdk version? jcdk version? ocf? or what}
    3- at start i want to use simulation technique to test what i made and how its work, so for this which tool or IDE would be best work for me,
    so kindly request you to guide me and show me the path where i can move and achieve what i want..
    ---------------------------------------------------------------------------------------------------Thank you in advance------------------------------------------
    Edited by: 911936 on Feb 2, 2012 10:01 AM

    Hello umer,
    last night it seems very tough to execute sample program of jcdk 2.2 but finally i make it, and i also i got the IDE - net beans that is very good for java card...
    I think i should share my knowledge here for next novice people...
    ----------------------------------------------------------------------------java card development require-------------------------------------------------------------
    Because here we use java for java card so we require
    1- java development kit (JDK) - use below link to get this.
    [get jdk here|http://download.oracle.com/otn-pub/java/jdk/6u30-b12/jdk-6u30-windows-i586.exe]
    2- Java card require java card development kit (JCDK) I think java card version 3 is latest but i used jcdk 2.2.1
    [get jcdk here|http://download.oracle.com/otn-pub/java/java_card_kit/2.2_01/java_card_kit-2_2_01-win-gl.zip]
    now  i think this is enough to start java card development...
    follow below steps
    1- install jdk 6 in c:/java/jdk1.6
    2-keep jcdk in c:/java_card_kit-2_2
    3- open command prompt and run
    a)-set JC_HOME=c:\java_card_kit-2_2
    b)-set JAVA_HOME=c:\java/jdk1.6
    c)-set PATH=%JC_HOME%\bin;%PATH%
    4-there are some sample project in scdk, if you want to get confidence , u should run one of them..
    run command- jcwde jcwde.app { jcwde is a simulator where u check what u made }
    and run this command in another command prompt- apdutool -nobanner -noatr demo1.scr > demo1.scr.jcwde.out
    You can get detail of 3 and 4 step from cJDK_Users_Guide.pdf which is present in jcdk.
    ------------------------this  is all which u need to do to get confidence in java card, but dont be over confident because in reality "the ball is not in your court yet"
    Note- if you are searching which java IDE is best for java card development then
    [click here- this is one of the best ide for java card|http://dlc.sun.com.edgesuite.net/netbeans/7.1/final/bundles/netbeans-7.1-ml-windows.exe]
    Edited by: 911936 on Feb 3, 2012 8:58 AM

  • Why my JCOP do not create CAPs for my java card application?

    I am using Eclipse 3.3.1.1 and JCOP tools3.1.2.
    When I create Java card application or applet, it doesn't create cap files for me automatically. Why?
    I used JCOP before, it always created new CAP files replacing the older ones when I saved the source code.
    Does the version of Eclipse conflict with that of JCOP?
    By the way I am using JDK 1.6 for my default lib.
    Thanks!

    Well it works. I tested it with your version.
    - Check out if your project has the JCOP nature.
    - Check via the Navigator view if the javacard folder is created, including the .exp and .cap file (you need to refresh the last folder)
    - Check if your Eclipse project setting have automatic build enabled, otherwise you need to trigger the build automatically
    - Try to refresh, clean and rebuild the project

  • Java card application and applet

    Hi
    I' am developing a java card application which has three applets (1-ID, 2-Purse, 3-Library). I mean the same card should be use for personal ID, purse, and as library card. Using eclipse I first have to create a new project.
    File-New-New project-java card project. Then in the package Explorer view right click src then New-other-java card Applet. My question is because my java card application has more than one applet how do I add the other two. Should I add the other two by clicking src again or just add them under the same source code belonging to the java card Applet created at the beginning.

    you mean by again doing right click src then New-other-java card Applet.

  • Reg: java card application needs

    Dear experts,
    i am a newbie to java card, After a lot of googling, i found JACCAL to aid java card programming development. I have downloaded and installed it but i dont know how to use it? any help will be greatly appreciated,
    By the way, i need to know why do we need IDE or tools for java card programming?. Cant we complete right from typing program to till burning on card using the java card kit ? please correct me, if i am wrong.
    I have tested the sample programs successfully with java card kit 2.1.2. My doubt is, What are the needs for java card application, like what CAD, card and tools should be used or purchased(most of them ,i found from the web are outdated like JCOP, OCF).
    Thanks in advance.
    SRI.

    you mean by again doing right click src then New-other-java card Applet.

  • Beginner's Question on simulation of java card application

    Hi,
    I am trying to run a basic Java card application.
    To simulate the java card application, I created jcwde.app and tried C:\>jcwde -p 9025 jcwde.app
    I got and exception like:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: markHeap
    at com.sun.javacard.impl.NativeMethods.markHeap(Native Method)
    at javacard.framework.Dispatcher.cardInit(Dispatcher.java:188)
    at javacard.framework.Dispatcher.main(Dispatcher.java:63)
    at javacard.framework.JCWDEDispatcher.main(JCWDEDispatcher.java:28)
    at com.sun.javacard.jcwde.Main.run(Main.java:85)
    at com.sun.javacard.jcwde.Main.main(Main.java:148)
    Can anyone help me to find out the reason for this exception?
    The content of jcwde.app is
    // applet AID
    com.sun.javacard.installer.InstallerApplet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0x8:0x1
    wallet.Wallet
    Thanx in advance.
    anju

    I see terms like ...
    Core Java: The main libraries.
    JDK: (J)ava (D)evelopement (K)it) - AKA: (S)oftware (D)evelopement (K)it although the terms are not exactly synonomous
    J2EE:(J)ava 2 (E)nterprise (E)dition (builds on the J2SE with additional librarities for true business application building)
    J2SE: (J)ava 2 (S)tandard (E)dition (The core libraries for general Java program developement, w/o the extra stuff that is in the J2EE
    Go to java.sun.com and check out the tutorials, the readme files that come with the downloads, the release notes, etc ... HTH

  • Help in starting Java Card Programming

    Hi all,
    I�m totally new here. I just started Java Card programming. However I don�t know how to start though I think I have enough stuff. I have installed Java 1.6.0_02, JCOP tool 3.1.2, run Eclipse 3.3.0. I also have a dual interface smart card reader SDI010 and some smart card (dual access). I activated JCOP Tool, created new Java Card project, but after I entered package AIDs and applet AIDs I don�t know what I should do next. I looked through several books in Eclipse (Eclipse for dummies�) but can�t find anything about Java Card. Anyone have experience in this area please help me to start. If you know any document that guides step by step, please let me know. I found source code in Sun website (wallet.java) but I really don�t know how to use it. Thanks a lot.

    Hi,
    select
    Project -> Build Automatically. It will build a .CAP file every time you changed your Java Card project code and save it. You will see it in the
    CAP file viewer in the left corner (but only in case you are developing your JC applet in Java Card in Eclipse project and opened one of the
    JCOP perspectives: either development or debug).
    P.S. I suppose, that u still haven't looked through the JCOP tools documentation in the Eclipse IDE Help menu.
    Best regards,
    Eve
    Edited by: Ieva on Nov 4, 2007 9:01 AM

  • Can we test java card application on  2 simulators simultaneously?

    to create a java card applet we also need to write card reader code to select that applet from card.but can we test it using simulators.how can 2 simulators (1 for card applet and other for reader) run simultaneously?

    Hi,
    to create a java card applet we also need to write card reader code to select that applet from card.but can we test it using simulators.how can 2 simulators (1 for card applet and other for reader) run simultaneously?Do you intend to have both simulators talking to each other or is the intent to code a host application that communicates with both cards at the same time?
    If you are using CREF, you can start the second instance on a different port. You would then configure your host application to look for cards on both ports.
    Cheers,
    Shane

  • Writing Java Card Application

    Please I am doing my final year project on secure mobile application using Java Card Technology.
    I need to write and an application that can send SMS on a SIM card to another SIM card with the same application. The application will have a server side which manage the storage of messages and at the same time communicate information to the client on the SIM remotely. I am suppose to use wi-fi (TCP/IP) for transmission.
    Can anybody please give me ideas and possible working codes and simulators.
    I mean step by step procedure of how to start.
    THANK YOU.

    Dear Friend,
    I would recomend you to start with learning 3GPP TS 43.019. Please surf the internet and download it. There you can also find a sample applet using SIM API.
    For a simulator you can download JavaCard Development Suite from Gemalto web site.
    Yours
    Dmitri

  • How should i start Java Card Programming?

    Hi All,
    I am a j2me programmer and now would like to learn and develop some applications in JavaCard Technology. but the problem is i dont know how should i start with JavaCard Programming?What all hardwares and softwares will i require for doing JavaCard programming?Can anyone give me some project ideas too for programming in JavaCard Technology
    Thanks
    Sagar

    I think it's best you start here:
    http://java.sun.com/products/javacard/index.jsp
    Some hints about books/specs you can find in this post:
    http://forum.java.sun.com/thread.jspa?forumID=23&threadID=5114170
    There are a variety of Java Card development tools. Just browse through this forum.

  • Need suggestions to start java card prog. plz help!!

    hi ppl....
    I am new to java card programming, but not to java programming. As a starter, i need to know ..... how to write a basic java card app?? Further, i also want to get the knowledge of testing/running this app on any simulator (if available). Can someone tell me that if i need to run my card application on real "smart card" (NOT on simulator), then what i need to have ... i mean any card processor or interface with PC. Any help will be much appreciated.
    Raheel.

    Download the sun kit and read the manuals

  • Step by step approach to develope the java card application

    Do anybody know how to develope a smart card application using java card.i have downloaded java card kit,but the documentation provided by the sun is bit complex to use.
    so please anybody know how to proceed?
    It would be appreciated if i am given a step by step approach to develope a smart card application using java card.

    Do anybody know how to develope a smart card
    application using java card.i have downloaded java
    card kit,but the documentation provided by the sun is
    bit complex to use.
    so please anybody know how to proceed?I would suggest to read these articles
    http://developers.sun.com/techtopics/mobility/javacard/articles/
    Jan

  • Is it possible to simulate whole java card application on simulator?

    Hello all,
    currently i dont have any real java card yet,not either reader . I already made a simple applet and check its working by CJCRE (net beans simulator), it is working fine,
    now i want to move to host application which will communicate with java card via card reader. Is this possible to simulate complete application ( host application + java card applets)?
    I want to check it out that:- which line of java program would be helpful to know that:-
    1-"how real host application will talk to reader"
    2- how it connect and disconnect the reader
    3- how it send apdu to java card by reader
    and much more.
    I am using netbeans 7.1 and it is using CJCRE as a simulator....

    you mean to say this
    http://askra.de/software/jcdocs/app-notes-2.2.2/apduio.html
    I am quite confused now, i read this but still can not imagine the concept ,
    an applet code is :-
    public class GetName extends Applet
         final static byte CLASS     = (byte) 0x80;  // Class of the APDU commands
         final static byte INS_READ  = (byte) 0x02;  // instruction for the READ APDU command
         final static byte INS_WRITE = (byte) 0x03;  // instruction for the READ APDU command
         final static byte INS_DY_CO = (byte) 0x04;  // instruction for the READ APDU command
         final static byte[] text    = {(byte) 'A', (byte) 'M', (byte) 'I', (byte) 'T'};
         public static byte[] holder;
         public static void install(byte[] bArray, short bOffset, byte bLength)
            new GetName();
        protected GetName()
            holder = new byte[5];// allocation of memory in runtime
            register();
        public void process(APDU apdu)
              if(selectingApplet())
                   return;
            byte[] cmd_apdu = apdu.getBuffer();         
             if (cmd_apdu[ISO7816.OFFSET_CLA] == CLASS)
                   switch(cmd_apdu[ISO7816.OFFSET_INS])
                        case INS_READ:  
                        if ((cmd_apdu[ISO7816.OFFSET_P1] != 0) || (cmd_apdu[ISO7816.OFFSET_P2] != 0))
                        ISOException.throwIt(ISO7816.SW_WRONG_P1P2);
                        short le = (short)(cmd_apdu[ISO7816.OFFSET_LC] & 0x00FF); 
                        short len_text = (short)text.length;                      
                        if (le != len_text)
                        ISOException.throwIt((short)(ISO7816.SW_CORRECT_LENGTH_00 + len_text)); 
                        apdu.setOutgoing();                      
                        apdu.setOutgoingLength((short)len_text);
                        apdu.sendBytesLong(text, (short)0, (short)len_text);
                        break;
                    // here we save data from apdu and will keep inside the data byte                   
                        case INS_WRITE:
                    short lc = (short)(cmd_apdu[ISO7816.OFFSET_LC] & 0x00FF); 
                    Util.arrayCopy(cmd_apdu, (short) ((ISO7816.OFFSET_CDATA) & 0xff), holder, (short) 0, lc);
                        short len_holder_inside_write= (short) holder.length;
                       apdu.setOutgoing();
                    apdu.setOutgoingLength((short)len_holder_inside_write);
                    apdu.sendBytesLong(holder, (short) 0, (short) len_holder_inside_write);
                    break;
                    case INS_DY_CO:
                        short len_holder= (short) holder.length;
                    apdu.setOutgoing();
                    apdu.setOutgoingLength((short)len_holder);
                    apdu.sendBytesLong(holder, (short) 0, (short) len_holder);
                    break;
                        default : 
                        ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
             else
                    ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
    }now i think i need to make a another java file which would contain a main class, Is this both file would be inside a single java card project. and how these both would be connect to each other.
    for manually run a applet- there were two steps 1-
    C:\java_card_kit-2_2\samples\src\demo>jcwde jcwde-getname.app
    Java Card 2.2 Workstation Development Environment (version 0.18).
    Copyright 2002 Sun Microsystems, Inc. All rights reserved.
    jcwde is listening for T=0 Apdu's on TCP/IP port 9,025.
    and in second terminal we wrote-
    C:\java_card_kit-2_2\samples\src\demo>apdutool -nobanner -noatr getname.scr > ge
    tname.scr.jcwde.out
    Here it is clear that, if i will use javacardio then no need to pass the apdu from a file .....but i am confuse about how it possible, ie. is both file lie in same project , because i m using simulator so i need to run these both file simoltaneously........give me some roughly steps to implement this.

  • Starting java card

    I am new to java card can anyone tell how to begin
    from installing ide or toolkit to writing application please provide links for downloading ide or api's
    thanks

    As for the IDE, you can use Ecplise with the Java Card Plugin:
    http://www.eclipse.org/downloads/
    http://eclipse-jcde.sourceforge.net/
    Of course, you will also need the Java Card Development Kit:
    http://java.sun.com/javacard/devkit/
    Also, check out this tutorial on Java Card applets:
    http://www.javaworld.com/javaworld/jw-07-1999/jw-07-javacard.html

  • Auto start application in web logic

    Hello,
    I need to auto startup an application in a unix server. The application uses session bean to access the database.
    Is it possible to auto start up the application using a cron tab/cron job because the application is using session bean residing in weblogic server?
    If not how do i do that? convert the session bean into normal java classes and access database without using a session bean?
    Thanks for you help.

    Hi,
    I tried adding the listener .
    It work in tomcat but after i transport it into weblogic 5.1, i give this error.
    Received SAXParseException from Sun Parser at line 5, column -1: org.xml.sax.SAXParseException: Element "web-app" does not allow "listener" here.
    I removed all other elements and it stil l wont work...
    <listener>
    <listener-class>com.SAW.project.servlet.SVLTriggerServlet</listener-class>
    </listener>
    Is there any way to fix this?
    Or what s the correct way to wrtie a program that do something once everyday, auto start up when webserver startup and use Session bean to access database?
    I tried using cron job but i dont think i can because im using EJB in my program..init() is not called when u start the server...
    im going to try the <!ELEMENT load-on-startup (#PCDATA)> to start it using a http servlet instead of a listener...

Maybe you are looking for