How to compile and test the SIM card applet

Hi all
I have a sample applet:
package sim.access.sample;

import sim.access.*;

public final class helloFile extends Applet implements ToolkitInterface
{
       private static SIMView  theGsmApplet;
       private static USIMView aUsimApplet;
       private static AID theGSMAppletAID;
       private static AID theUSIMAppletAID;
       
       private static final byte[]  baGSMAID = {(byte)0xA0,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x09,(byte)0x00,(byte)0x01};
       
       protected helloFile(){
       

       public MyApplet () {
            theGSMAppletAID = new AID();
            // get a reference to the GSM interface
            theGsmApplet = SIMSystem.getTheSIMView(theGSMAppletAID);
       }
       
       
       public void doSomethingWithAFile(){
            
               // returns the SIMView of the currently selected Applet 
               // allows to implement services that are depend on specific 
               // file in GSM or USIM application as well as to implement 
               // technolgie independent applets.
               SIMView theView = SIMSystem.getTheSIMView();
               if(theView instanceof SIMView){
                    // do something with a GSM file
               }
               else if(theView instanceof USIMView) {
                    //do something with a USIM specific file
               }
               
               // Or request a View to a specific application
               USIMView theView = SIMSystem.getTheSIMView(aUSIMAppletAID);
       }

}
I want to compile and test, how can I do?

Muhammad Umer wrote:

safarmer wrote:
You need the EXP files to be on the road to construction. This can be in the form of a POT that has a record of javacard under each package with the EXP file.

I downloaded the package, but I wonder that, on compiling EXP file is automatically generated in the class path in the bin folder. But the I downloaded the package contains java card folder and EXP files inside of them, where should I put these files?

JCOP generate EXP files for source code compiled for you. If you have it in a jar on your way of construction, then they are not replaced. I managed to unpack the java files and EXP files in the ZIP file of 3GPP. When combined into a single JAR file (with each package having a javacard subfolder) JCOP tools recognizes files and is able to use to build my project. All the necessary files are in the ZIP of the Web site.

See you soon,.
Shane

Tags: Java

Similar Questions

  • How to transfer and keep the Sims card and computer games?

    How can transfer you things from your computer to a sims card without taking them out of the computer. If you have any games on a single computer and want to use them on your shelf, but you cannot use the disc on the tray.

    Hello

    Unfortunately, we are unable to transfer the games from your computer to a SIM card.

    However, you can copy files to a mobile device: http://windows.microsoft.com/en-IN/windows-vista/Copy-files-to-a-mobile-device

    Hope this information is useful.

  • How to compile and install the kernel modules after nation and nipalk for installation of Gentoo 64 bit?

    We are trying to install a PCIe 6251 DAQ card in a box of Gentoo 64 bit running Linux kernel 2.6.28 - gentoo-r5 4.3.2 - gcc and glibc - 2.8.  We have installed RPM utilities to manage the installation.  The current problem is that we are not able to compile and install the kernel modules: nidmxfk, nimsdrk, nimstsk and nipxirmk.  Here's a summary of what we have done so far, and to what extent we got.

    First of all, we have changed the configuration of the kernel that we could export the init_mm unused symbol by changing the configuration option of the CONFIG_UNUSED_SYMBOLS = o kernel and recompile the kernel.  Then we installed LabView 8.6.1.  Then we ran the nation 1.9 installer who has installed the source code in vain on the compilation.  To resolve this problem, we have changed the function of pte_offset to pte_offset_kernel by editing the file/usr/local/natinst/nation/configures following the instructions here:

    http://decibel.NI.com/content/docs/doc-4511

    We were then able to compile and install the kernel nation module thanks to:

    . / configure
    do
    make install

    lsmod said that nation has been properly installed.  Then we ran the installer for DAQmx 8.0.1 by:

    . / INSTALL - nodeps

    To do this, we have received errors indicating that LabView support could not be installed because check addictive (incorrectly we think) stated that labviewbase86 has not been installed; This caused the installer to have an abortion.  Therefore, we refused to install support for LabView 8.6 and revived the installation program which produces the output:

    Installation of the driver NOR-DAQmx Distribution of Linux Installer version 8.0.1f0...

    Already to jump Edward - 1.9.0 - f0.noarch.rpm installation, same or newer
    installed.

    Pre Installation...

    Preparing... ########################################### [100%]
    1:nitimingi ########################################### [ 4%]
    2:nipalki ########################################### [ 7%]
    3:nipali ########################################### [ 11%]
    RC0.d directory not found, startup script is not accredited with init levels.
    4:labview80 - rte # [14%]
    5:ni653x ########################################### [ 18%]
    6:nicdigi ########################################### [ 21%]
    7:nidaqmxcapiexmp # [25%]
    8:nidaqmxcapihelp # [29%]
    9:nidaqmxcapii # [32%]
    LN: create the symbolic link ' / usr/local/include/NIDAQmx.h': no such file or directory
    10:nidaqmxcfgi # [36%]
    11:nidaqmxef # [39%]
    12:nidaqmxhelp # [43%]
    13:nidaqmxinfi # [46%]
    14:nidaqmxswitch # [50%]
    15:nidimi ########################################### [ 54%]
    16:nidsai ########################################### [ 57%]
    17:nimdbgi ########################################### [ 61%]
    18:nimioi ########################################### [ 64%]
    19:nimru2i ########################################### [ 68%]
    20:nimxdfi ########################################### [ 71%]
    21:nimxpi ########################################### [ 75%]
    22:nimxs ########################################### [ 79%]
    RC0.d directory not found, startup script is not accredited with init levels.
    23:niorbi ########################################### [ 82%]
    24:nipxirmi ########################################### [ 86%]
    25:nirpci ########################################### [ 89%]
    26:niscarabmm # [93%]
    27:niscxi ########################################### [ 96%]
    28:nistci ########################################### [100%]

    After Installation...

    At this point, after reading this report, we used the Gentoo rc update utility to add several scripts for the boot runlevel initialisation:

    update of RC - a boot nipple
    update of RC - a bunch of nipxirmu
    update of RC - a bunch of mxssvr
    update of RC - a bunch of nisvcloc
    update of RC - a bunch of nidevldu

    When the computer reboots, you get an error message indicating that the following kernel modules are not: nidmxfk, nimsdrk, nimstsk and nipxirmk.  lsmod shows that the nation and nipalk are installed, but no other kernel modules NOR are present.  modprobe-l shows that only nation and nipalk are available.

    So we have several questions:

    1. we install drivers in the correct order?  Should use us NI-VISA 4.5 or NOR-488. 2 rather than DAQmx 8.0.1?

    2. What kernel modules should be loaded for this equipment run?  How to compile and install the ones that we have yet, specifically nidmxfk, nimsdrk, nimstsk and nipxirmk?  Are there others?

    3. How can we get the installer to properly recognize that we have installed LabView Core and install support for LabView?  Are there additional kernel modules related to the support of LabView?

    4. What is the symbolic link that was not created in the DAQmx installation report? (ln: create the symbolic link ' / usr/local/include/NIDAQmx.h': no such file or directory)?

    I apologize for so many questions, but these seem to be the last obstacles to obtaining OR runs correctly on this system.  Is there other information that we can provide that would be useful?  Thanks for any help or suggestions you can offer.

    Craig

    Hey Craig,.

    Given that you use 64-bit Linux all kernel modules must be compiled for 64 - bit.  User mode binaries can be 32-bit, assuming that you have installed the 32-bit support libraries.

    NOR-DAQmx is a complex architecture and requires several kernel modules to support your PCIe card.  Most of these kernel modules have not been brought to support 64-bit Linux.  Some kernel modules are components infrustructure that are shared with other pilots OR as NI-VISA and NOR-488. 2 and have been brought to support 64-bit Linux.  Unfortunately, you need all the modules to use your hardware.

    I hope that answers your question.

    Shawn Bohrer

    National Instruments

  • help on how to compile and run the awt programs

    any1 can tell how to compile and run the awt programs

    Published by: 863765 on July 18, 2011 03:29

    The same way you compile and run any other Java program.

  • How to develop and test the application mobile flex without the real device?

    I'm trying to read some information about it, but decided to ask also here.

    I have a project that has a company wants to grow me, it's for iPad. That's ok I am with Flex and the framework for web development, but not for mobile. Why? Because I have no idea how to test my application. I know generation ago it sort of the desktop version of the application with the change of the "back" button on the orientation stuff, but how do I know my application will look and work exactly the same (I mean NOT performance here). I mean you know how every android or iOS device have their native keyboard or native video player for example and I have only in the debug version of the application.

    The question is how to develop this application based on the desktop emulator or anything and then hope that my app looks and works on a device, as it should... Of course I can't afford to buy all the devices it is just to be able to test on it if necessary? So, how do you, how to test how my iPad app works on a device without a? I know I should get a licence from iOS dev to be able to package the app for iOS, but it's $ 99 per year or something like that I can handle, but how to test my application without having to buy the darn device? Are there any emulator for iPad or something like that I know what my customers will see when they get the application? One of my friends told me that the mac os x use the developers a tool - cause some kit of dev who has emulators for all iOS devices and you can build and test there immediately and that you can simulate virtually any combination of key for example, and he said he's working and seems to 1:1 as the real device but he didn't know if can I export an AIR application and try it like this, he only knew for app written in native code.

    If someone can just tell me how should I do this? Should I buy a mac os x computer laptop to test because I am a user of windows 7, or perhaps create a mac os x virtual machine and tests out there or maybe the only option is to actually buy the device... that would be terrible for a freelancer...

    I hope someone can save the day here! Thank you.

    F

    Since the AIR for iOS applications are compiled to ARM code you will not be able to run on iOS emulators running on Mac OSX.

    You can do a very simple test with the "Simulator" built into Flash Builder, but it is not much more than a window to AIR with a window size that matches the resolution of the selected iOS device.  When running in the simulator of the application is not compiled to ARM code so it will take a completely different code path than what will be the final release of iOS.

    Ultimately if you are developing for iOS with AIR nothing but for tests on real iOS devices.

  • Just upgraded my iOS 9.3.1 ipad2 and my cell phone has been disabled. ATT has checked the settings and changed the SIM cards. This can be corrected?

    Just updated to iOS 9.3.1 on my ipad2. My cell phone has been disabled. This can be corrected?

    I have the same problem

  • How to use the sim card that comes with my thinkpad tablet 3G version?

    I got my tablet from newegg and my Tablet comes with a sim card AT & T, how to use this map? I have to go to the AT & T sign a contract and activate store? I'm in the United States
    Thank you!

    At & t will put you on a laptop data plan which is more expensive than a plan of "ipad." If you can, find an IMEI of an Ipad and use the sim card number and the IMEI number of the Ipad for you sign up for a plan of cost reduction. Call them to implement. Using an online form or walk into a store At & t will be very frustrating.

    PS: it is there no contract that your device is not supported by anyone - you own. It will be a month of service. If you don't sign up, free of charge.

    What, the bonus is a kick butt gps integrated 3G wwan card. Enjoy!

  • What is the problem with my iphone? He says still no service but my sim card works with other phones, after a reboot it says searching until I have to remove and reinsert the sim ive done all what is the factory reset to open the phone to verify any damag

    IPhone 6 64 gb

    iOS 9.2.1

    The phone says no service but the SIM card works, everything in the phone works except the flash still lights up and flickers sometimes before becoming stable but who don't mind not 'that' much, ive tried factory reset and everything, ive also open the unit and looked for signs of damage, the phone knows there is a SIM card in the phone , but he never says the name of the carrier, also after the restart he said looking and does not stop until I have remove and reinsert the SIM card.

    You can restore the factory state after an iTunes backup

    If this does not resolve the problem then you may want to align on Apple or an approved repair shop

  • How to insert the SIM card into the flame

    Hello

    I'm trying to put my SIM card in a phone of flame, but I don't know how to do it.

    I try to place the card in the slot, but the slot is higher than the card, I do not know if I put the card good or bad. The message still says "SIM not detected." Can I restart the device every time I slightly move the SIM card to force recognition?
    I have to do something else with the SIM card?

    PS: The flame brochure says in 2 different places ("see Insert or remove the SIM card '), but this article does not appear in the brochure.

    Hi xabitubbi,

    No, the flame device uses a SIM to normal size. Yours is a micro-SIM.

    You should contact your operator and ask for a normal size SIM card that fits on the device of the flame.

    -Ralph

  • How many times by hours and age a SIM card needed to be replaced?

    My iPhone 6 s touch keyboard is often hit and Miss, a replacement of SIM card would be required?... When is it appropriate to change/replace a used an iPhone of 1st year?

    The SIM card is to connect to cellular networks, it has nothing to do with the touch screen or keyboard. Nothing will ever replace a SIM card unless the card itself is faulty, or your carrier it disabled.

  • I just bought an Iphone 6s and not yet am possession of en from the Sim Card. Ook, do you know if I can use the phone including applications via Wifi and put the chip later? Thank you. Renault JL

    I just bought an Iphone 6s and not yet am possession of en from the Sim Card. Ook, do you know if I can use the phone including applications via Wifi and put the chip later? Thank you. Renault JL

    No, because if you bought a new iPhone, then you need a SIM card to activate it before you can use the wifi applications.

    This is a phone after all, you don't need a sim card any to be able to activate it.

  • I got an iphone 4 to a friend in the Canada. I want to use it here in the Philippines as a regular iPad reserved for wifi, how can I use it without sim card? It does not pass the activation page. Help please?

    I got an iphone 4 to a friend in the Canada. I want to use it here in the Philippines as a regular iPad reserved for wifi, how can I use it without sim card? It does not pass the activation page. Help please?

    You can activate it without a SIM card. If it is locked, it takes a SIM card by the carrier, for it is locked. The SIM card should not be linked to an active line of service, but it must be present to activate it.

  • I took a sim card to an iPhone and place in another.  What should I do next to the phone with the sim card replaced?  The screen and apps are from the old phone...

    Hi, my wife 4S iPhone died and I I replaced his Sim Card with my old s 4 card as I have updated.  She is still decide to upgrade, but needs a phone so replace the sim card seemed like a good thing to do.  So now his phone has all my contacts, applications etc on it and none of his own.  What is the next step to have his stuff on his phone?  Is this to connect to its MacBook or reset the phone and connect.

    Thank you.

    Has a backup via iTunes or iCloud of his old phone before he died? If so, what follows has instructions. Transfer the contents of an iPhone, iPad or iPod touch to a new device - Apple Support

    Note that since the phone is already implemented (i.e., no news, the first step will be to follow the instructions below to the bottom of this link.

    To transfer a backup on a device, you have already configured, you need to clear the device: tap Settings > General > reset > erase all content and settings. This erases all the data that is currently on your device. After you erased, your device will restart and you will see the screen of 'Hello '. Now, you can transfer a backup of your device.

  • How to put photos on the sd card and place it on a slide photo?

    * Original title: photo sharing

    How to put photos on the sd card and then place it on a photo slide7D

    Hello

    Please contact Microsoft Community.

    Insert the SD Card/Memory Stick in your reader of media and go... Start / computer.

    The drive should be recognized as one or more removable disks and
    each will have a drive letter.

    Example:
    Removable disk (e :))
    Removable drive (g)
    Removable disk (h :))

    Left-click each removable disk until you reveal the directory root of the SD.
    Card/Memory Stick.

    OK, now that you know the letter of player if you click right one selected
    Group of photos or an entire folder, you should be able to choose... Send to
    /
    Removable disk (? :))..) .This must copy the photos to the SD Card/Memory Stick.

    I hope this helps.

  • How to get the Caller ID of the SIM card?

    Hello

    Can I get the SIM card or in any other way caller ID. ?

    anyone has an idea about this. Please give suggestion/Reference / code for this example.

    Thank you.

    Narendra

    the two abbreviations are words smart cards related:
    Application Protocol Data Unit allows you to communicate with a card chip.
    Java Card Remote Method Invocation is the communication unit between a smartcard reader and a smart card.

    they can be used only to communicate with applications on a sim card.
    Source:
    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=29144

Maybe you are looking for

  • How to change the system of firefox for the English language without having to uninstall and download again

    I have the Spanish version and do not work well make changes in firefox because the language of the browser is in Spanish. I found a few answers on the Internet, but they do not work for me. If this is not possible, how is it difficult to uninstall a

  • Toshiba snaps the factory system?

    HelloOK - following my previous post try to reinstall the operating system using the recovery on a replacement hard drive CD in a Satellite A30 (I tested and eliminated the possibility of partition size problems and GB)I have a question if Toshiba lo

  • Install srvany.exe in win 2008 r2 servers

    Hello I'm migrating off 2003 servers (I inherited) and have some old VB apps I would like to set up as a service on the new servers of 2008rs. Srvany.exe is currently used. Can I use this on 2008r2? Are there necessary measures other than the copy of

  • HP 1262-sr + Radeon 6470

    My laptop is almost 3 years old, and a few months ago, I lost my radeon 6470 m in the system. I have a windows 7 x 64, so system map only Intel HD graphics and none radeon, what am I supposed to do? I tried to update the BIOS, update drivers - nothin

  • How smartphones blackBerry apps can take a 9000 "BOLD"

    My 9000 "BOLD" cannot hold more than 2 apps without freezing up, I do not have many themes, either I had about 4 or 5 and I had to delete 3 of them, and some of my apps cause the Manager of memory comes in saying I should delete an app. So I would li