How to run Java Card Program in a Simulator

I m Narendra Reddy studying in India and have taken Java Card for my B.E. final year project.
i also acquire knowledge of Whole Java Card Development Life Cycle but i found much more difficulties to implement those ideas into java card.
so, Will you please do me a favour and give me a complete solution if possible with an example.
i also want each step with the commands, from the creation of Class file to the running of prog. in simulator.
it will be very useful for me to head towards my project.
Thank you,

Just for the record,
Since we are looking at different possibilities, there are couple of ways to achieve simulation/testing environment for current Java Card,
1. "The Java Card Workstation Development Environment(JCWDE) tool allows the simulated running of Java Card applet as if it were masked in ROM. It immulates Card environment." Although, as Joe mentioned, it does not support;
- package installation
- applet instance creation
- persistent card state
- firewall
- transactions
- transient array clearing
- remote method invocation
- applet/package deletion
Thus you can use 'jcwde' tool in combination of apdutool to test some
of the Applet behavior(& JCRE) but not all. You have realized this when you tried 'sample' applets.
2. JCDK2.2 also provide c-reference implementation of the Java Card. This(cref) is more robust way to test Applet. Although the catch with this is that Sun does not have SCSL(Community Source Licensing) program for Java Card(alas!) and this means you can not mask your applet into this reference implementation unless you get hold of source code somehow(source licensing is one(costly) way)
3. Buy reader/card and figure out how to install applet for
testing purpose.
4. Buy kit from JC vendor containing reader/software/cards and use it
(costly and hard to find JC2.2 implementation)
1 and 2 are easier but not a real life solution(how many cards with intel/sparc processor anyway?). 3 and 4 are ideal but other way challenging. Yes, probably solution-1 is the right for your purpose.
regard,

Similar Messages

  • How to run Java Card 2.2.1 demo application?

    Hi Friends..
    i want to know how to run Java Card 2.2.1 demo application in Windows environment..
    Sorry, perhaps this question looks like a little bit stupid.. :(
    In Windows, I've set the environment variables for :
    JAVA_HOME : C:\Program Files\Java\jdk1.6.0_03
    JC_HOME : C:\java_card_kit-2_2_1
    and then how to run demo1.scr, etc?.
    Please help me regarding this,
    Thanks in advance..

    Is there any suggestion for my question?.. :(
    Thanks in advance..

  • How to run java card applet

    dear friend
    i am using java card development kit version 2.2.2. i have downloaded apache-ant-1.7.0-bin .i have tried to run the sample code provided by the kit.i n the kit i have seen a HelloWorld Applet. i have compiled it.using the follwing commands
    F:\Program Files\Java\jdk1.6.0_05>set JAVA_HOME=F:\Program Files\Java\jdk1.6.0_0
    5
    F:\Program Files\Java\jdk1.6.0_05>set PATH=%JC_HOME%\bin;%JAVA_HOME%\bin;%PATH%
    F:\Program Files\Java\jdk1.6.0_05>cd..
    F:\Program Files\Java>cd..
    F:\Program Files>cd..
    F:\>cd arun
    F:\arun>cd apache-ant-1.7.0-bin\apache-ant-1.7.0\bin
    F:\arun\apache-ant-1.7.0-bin\apache-ant-1.7.0\bin>set PATH=%PATH%;F:\arun\apache
    -ant-1.7.0-bin\apache-ant-1.7.0\bin
    F:\arun\apache-ant-1.7.0-bin\apache-ant-1.7.0\bin>cd..
    F:\arun\apache-ant-1.7.0-bin\apache-ant-1.7.0>cd..
    F:\arun\apache-ant-1.7.0-bin>cd..
    F:\arun>cd java_card_kit-2_2_2
    F:\arun\java_card_kit-2_2_2>cd java_card_kit-2_2_2-rr-bin-windows-do\samples
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>javac
    -g -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard
    \samples\HelloWorld\*.java
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>javac
    -g -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard
    \samples\HelloWorld\*.java
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>javac
    -g -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard
    \samples\HelloWorld\*.java
    F:\arun\java_card_kit-2_2_2\java_card_kit-2_2_2-rr-bin-windows-do\samples>
    and now what i have to do to get the output of this applet? can u please help me with detailed description of te steps and commands and the directory from which i have to use those commands
    thanks in advance
    bye

    Is there any suggestion for my question?.. :(
    Thanks in advance..

  • How to run Java Card 2.2.2 sample Wallet Application?

    Hi Friends..
    I've downloaded Eclipse Pulsar and Java Card Plugins..
    and i tried to make an empty applicatio, and then i loaded all samples application into my empty application..
    after that, i tried to set AID for Wallet Applet and for package of Wallet Applet..
    I've tried to creates a .CAP file, .EXP file, .JCA file, and scripts file through Eclipse Java Card tools..
    and then what else i've to do?..
    Please give me any suggestion.., because i'm so dizzy.. :(
    Thanks in advance..

    Sorry, i forgot to ask this question..
    Will .cap file installed automatically, when .cap file loaded successfully?
    it means that the all packages and applets would be installed automatically, when that all files loaded successfully?
    Thanks in advance..

  • Java Card program execution on Eclipse

    Hi Dears,
    I am new to Java Card. I did setup to run Java Card programs on eclipse using http://eclipse-jcde.sourceforge.net/.
    This is my simple program below
    import javacard.security.RandomData;
    public class Main {
         public void main() {
              RandomData rd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
              short outLen = 10;
              byte buffer[] = new byte[outLen];
              short outOffset = 0;
              rd.generateData(buffer, outOffset, outLen);
    Compilation is successful but when I run the program I get the following error.
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/String
    This is very annoying. I think my run time environment is not ok for running java card programs. I am able to run Java programs but not java card programs. Any one can help please?
    Thanks,
    Regards,
    Naveed

    please post code with {code} tags
    Naveed86 wrote:
    Hi Dears,
    I am new to Java Card. I did setup to run Java Card programs on eclipse using http://eclipse-jcde.sourceforge.net/.
    This is my simple program below
    import javacard.security.RandomData;
    public class Main {
         public void main() {
              RandomData rd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
              short outLen = 10;
              byte buffer[] = new byte[outLen];
              short outOffset = 0;
              rd.generateData(buffer, outOffset, outLen);
    }Compilation is successful but when I run the program I get the following error.
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/String
    This is very annoying. I think my run time environment is not ok for running java card programs. I am able to run Java programs but not java card programs. Any one can help please?
    Thanks,
    Regards,
    Naveed

  • How to run java program from website?

    Hello
    I'd like to know how to run java program from my web page.
    I'd like to push some button in this web page so java program that would be on my server
    would pop-up. Can it be done automaticaly upon running this web site? (without any buttons - I just enter website and program pops up).
    Cheers

    I rather thought about RMI. But I could try servlets. So how it would look like?.
    I would make http request in browser (enter address) and program would show up in its window?. And I would not have to change anything in my program?. This program would run then on both boxes?. One remotely and one not?.
    But I would have to learn some basics, I've never worked with servlets. Could you suggest some good sites about it?. With ready examples so I could tweak them to my purpose.
    Message was edited by:
    macmacmac

  • How to run Java program as Daemon Server in linux

    How to run Java program as Daemon Server in linux
    i would like to run the java program on system start up in a redhat linux system
    can any one provide rc.status file

    http://wrapper.tanukisoftware.org/

  • How to start with Card programming !

    Hello,
    I want to learn card programming. For this i want to know few things.
    1) Where can i find an IDE to write program ?
    2) Do we get any simulator in it ?
    3) How to compile and run the card program.
    Right now i can not buy a reader or card. Just want to develop in simulator. How to start ?
    Please, help me. I do not know anything about it.
    Thanks,
    Abhijit Chandekar

    I want to learn card programming.http://developers.sun.com/techtopics/mobility/javacard/articles/
    Read "An Introduction to Java Card Technology" Part 1 to 3 for starting with java cards.
    1) Where can i find an IDE to write program ?The JCOP tools plugin for Eclipse is the cheapest IDE i know.
    http://www.zurich.ibm.com/jcop/products/tools.html
    2) Do we get any simulator in it ?Use CREF from the Java card development Kit or the JCOP emulator from the JCOP tools.
    3) How to compile and run the card program.See the Java Card Development Kit User’s Guide that comes with the Java Card JDK.
    @the other forum member:
    May be we should start creating a forum-FAQ which will be posted once a week. That would make it easier to help all the "newbies"...
    Someone interested?
    Jan

  • 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

  • Sourcing : Error while Running Java Concurrent Program

    Hi All,
    Navigations:
    Application: Sourcing
    Responsibility : Sourcing Buyer
    Concurrent Program : Generate and Store Sourcing response spreadsheet
    I am trying to run
    Java Concurrent Program : Generate and Store Sourcing response spreadsheet in SRS Window,
    it completed with Error status.
    Please let me know How can I run this Concurrent Program with Normal status and able to view/save the Output.
    Please provide resolution on this.

    Thanks for your reply..
    Program: Generate and Store Sourcing response spreadsheet
    ShortName: PON_EXPORT_RESPONSE
    Application: Sourcing
    Executable: ExportResponseCp
    Method: Java Concurrent Program
    Responsibility : Sourcing Buyer.
    Has this ever worked? If yes, any changes been done recently?
    => No
    Is this the seeded concurrent program or a custom one?
    => Its seeded program.
    EBS: R12.1.3
    Login as Sourcing Buyer Responsibility :
    When you create RFQ and then Close RFQ and then create Surrogate quote and after you Export the Spreadsheet in SelfService Pages it generates the output.
    But if You run the concurrent program (Generate and Store Sourcing response spreadsheet) it errors out.
    Error : Exception in thread main java .lang.stringIndexOutOfBoundException:
    Thanks..

  • How to run the Servlet program?

    hi, all, I am new to servlet, and I want to know how to run the servlet program. I got the TomCat and Java JDK install in my computer, something else I need for create and run the servlet program?

    no that is all u need to run servlets. u can try few of the servlets that come with tomcat

  • How to run the package programs in eclipse ?

    hi all,
    how to run the package programs in eclipse ?
    plz clarify...
    regards
    balakrishna.m

    package source code is
    package package1;
    public class ClassaA
              public void displayA()
                   System.out.println("class A");
         }java source code is import package1.ClassA;
         class Packagetest1
              public static void main(String args[])
                   ClassA objectA = new ClassA();
                   objectA.displayA();
         }if i write the notepad means its executing successfully..
    but in eclips is not working..
    plz help me..

  • How to run .java file in windows ?

    How to run .java file in windows without installing any program? Thx!

    First, U must make sure that there is JDK on your computer
    Then, set the envionment variables which the os can find your compiler and interpreter: javac java
    after those, you must complie your .java file to .class file, then you can excute it by java, for example " java helloworld"

  • How to prepare Java Card Assembly files

    Hi,
    If we rebuilt the API's in Java Card then how could be Java card Assembly files be generated
    thanks
    murali

    Thank you Lee and paulcw. Good to know that
    information and thank you for your suggestion as
    well. Like what paulcw mentioned, not to put
    sensitive information in my code. I wrote those
    because I need to connect to MS SQL. I just have no
    idea how to connect to the database without writing
    those codes in the file. Could anyone explain little
    bit more on it? Thank you.Create a password file that is accessed by your program. It keeps the passwords out of the developers' hands. (Mandatory practice implemented by our DBAs).

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

Maybe you are looking for

  • Method all values from row

    Hi, Is there a method that get the all the values of a row? I've gone through the java api but didn't found one, but wanted to be sure. If not I'll have to do getValueAt for every column? Grtz

  • APC Power Backup Advice for Small Office

    I wasn't sure where to post this but I was hoping someone would not my pointing me to the right forum or offering some advice. I am trying to put the finishing touches on a conversion to mac and have been looking at buying a Power Backup in part for

  • Can't receive invites

    Hi community, since few days I'm not able to receive calendar invites on my iOS devices which are sent to my icloud account. I already checked my AppleID and it is not used somewhere else as seconary mail. I also have disabled iCloud on my device and

  • When Brother plays Xbox I lose internet

    Okay, when my brother plays Xbox with the wireless chip, my macbook says i still have connection with the router, but not with the internet. I use comcast netgear with 4 channels. I heard I could change the frequences of the two... Please help

  • How do I get rid of an unresponsive FP box in FBs Bingo Blitz?

    I have this problem of not being able to get rid of the Flash Player box covering my game in Facebook's Bingo Blitz.  I was able to get rid of this box in all other games where it showed up.  It won't let me click on ANYTHING in either the Flash Play