JavaCard applications on SIM accessing personal Java applications

Are personal java applications also applets just like Java Card Applets.
Also i am programming the SIM of the mobile phone which is a Java Card.
How can a Personal java application on the phone communicate with a JavaCard application on the card or vice versa. Please Note that for the user they are similar.i.e. they exist side-by-side on the same menu of the phone with the user having no clue that the application resides on the phone ( a personal java application) or on the card( a javacard application).
Can anyone tell me of some way for one personal java application to access a JavaCard application?
Thanks
SKhan

At the moment there exist no way to access the Java Card / smartcard in a J2ME/personal Java device. Currently we are working in JSR177 on the problem.

Similar Messages

  • How java application can access other java application

    Hi everyone,
    Please help me, I need to know how I can make my java program,
    specifically a servlet, access other java application continuously running a single instance in java virtual machine, and vice-versa.
    thanks in advance

    A java application is just a bunch of classes with one designated as a main class. You can simply ensure the classes are available to the server's jvm and then load and run the "external" program as part of the servlet process.
    If you have full access, and which external program is to be run, you can simply import it in your source.
    If your don't have the details at run time use the java.reflect.* stuff to load and run the class dynamically.

  • Access database/ java application/ jdbc odbc

    i am building an access database with a java application and get the following error message when i try to run the application. the log in window that i have does not have a password text field, only a field for the odbc name.
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Not a valid password.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2488)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:317)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:160)

    User/password are usually necessary to set up the ODBC source. So you may need find out who set up your ODBC source. Or you need find the correct user/password and reset the ODBC source.
    PC

  • Internet Accesses Freeze Java Application

    I have been programming a Java application, which is actually an instant text messaging system, that obviously makes internet accesses.
    The thing is, I have got this JFrame, with JScrollPanes, JTextAreas for messaging, and whenever the user presses the magical 'send' button; till the reply comes, the window freezes; you know it turns into grey.
    The way I send the messages is just to call the method that makes the connections and writes the data.
    How should I modify my code that my application should not freeze while waiting response? Is there a way to decrease the priority of a method or something?
    Thanks in advance..

    To clarify a bit.
    When you press the button an event is generated and put into the
    event handling queue (which handles all awt/swing events such as redraws/resizes etc). The Queue is processed by the event processing
    thread which pulls the button pressed event from the queue, finds
    the associated eventHandlers and calls them. What this means is that
    any code inside your event handler is run in the Event handling thread
    which causes it to not be able to handle any more events until the
    code in your handler is finished. Therefore all refreshes/button presses
    /resizes etc. (everything to do with the GUI and some other bits too)
    stop responding until your handler returns. Creating network connections
    can take a fair bit of time which means your handler takes a fair amount
    of time which means that the GUI locks up for a fair amount of time.
    Right, that there is the reason your GUI stalls.
    now, as pkwooster said, the way around this is to create a seperate
    thread that handles your connections to the internet. At the simplest
    level this thread can be created inside your "button pressed" event handler
    . For more complex solutions you will need to find someway of notifying
    a running thread that you have more work for it.
    pkwooster also said that there is a lot of code in this forum on topics
    related to the task you are attempting. You might wish to take his
    advice and look for it.
    matfud

  • Need advice for an application that restricts access to other applications using a smart card

    Hello everybody,
    I am developing a system that uses a smart card reader attached to a USB port of a PC.
    What the system should provide is:
    When computer boots up and shows the users login screen, a user, previously registered, can use his smart card to access the system, instead of entering his password
    Once the user is logged in, when he tries to launch an application, which has previously marked as "secured", a dialog box is shown indicating that the user has to present his smart card. If the smart card has access to the application, the application
    is launched, otherwise an error message is shown to the user and the application is not executed.
    I develop in C++ and C#. I have already created a library (in Visual C++) that manages the smart card reader and provides the card presented to it.
    Now I am developing the applicastion (in C#) that will configure the security (assigning cards to users and applications).
    Concerning this, I have 2 questions regarding each point above:
    Is it possible to create the centralized application that lists all users and allows to assign cards to them? Then, when the users login screen is shown, the system must access that data before logging in, so that it can check which card was presented and
    what user it corresponds to. I have seen in laptops, that have embedded fingerprint readers, a user must login to his account first and then he can register his fingerprints. In fact, what I need to do is something similar but with smart card reader instead
    of fingerprint reader. So, perhaps, user must login into his account first and then he will be able to add his card and store that information somewhere (in windows registry maybe).
    How can I launch my application when other application is executed but before its interface is actually shown? this is similar to what antivirus programs do, because they check the executable before it is actually ran. What is the best method to address
    the application? by executable file name? process name? or other? if the best is by process name, how can I know the process name without actually running the application?
    Well, that is all what I need to do. Please advice regarding this subject.
    I look forward to hearing from you,
    Best regards,
    Jaime
    Powered by C++

    > what was the guidance?
    1. Research other software that does similar things (not just exactly the same) as you need. If you like something in their solutions, copy it :)
    The only software I know that does that is an antivirus, but I am unlucky to find some code in c++ that allows to intercept the program execution before actually executing it.
    2. If a kernel driver would fit in your solution, go for it (google for what is available for free, or find a consultant to write it for you).
    There are a lot of information about kernel drivers, but the question is, is that really the solution?
    Otherwise, you can just hide the application from user's reach and substitute the executable in shortcuts, etc. to run your program instead.
    Definetly this is not the way to go
    What is the best method to address the application? by executable file name? process name? or other?
    By executable file name, like in the Windows Applocker, I think. Processes do not have names (they are artifact of Task manager and debugging tools, to represent the processes for user somehow). Or, only by the filename part of the full path.
    I agree with that
    if the best is by process name, how can I know the process name without actually running the application?
    When the user runs the application, the driver will detect this and do its magic.
    I have found this page: http://stackoverflow.com/questions/3556048/how-to-detect-win32-process-creation-termination-in-c. They mention WMI, but I will study it tommorow... it is so late for today :-)
    Regards,
    -- pa
    Regards
    Jaime
    Powered by C++

  • Accessing Non Java Applications thru Java Program

    Hye guys,
    I need help regarding this :
    Suppose I have a application which is non Java and application have several windows. Can I through a Java Program get the information abt the most active topmost window of the application?
    I think that only windows Task Manager knows abt the application and the child process(which is a different windows in this case ) and thus my Java Program have to do the low level system programming to
    get info from the task Manager, but that will be make my program platform dependent.
    Can we have a generalised program for this problem?
    Help in this regard will be highly appreciated..
    Thanks a lot

    Hm, a platform-independent way to get information about OS-specific processes? Not likely.

  • How to download Personal Java and how to run the application

    Hi,
    From java.sun.com, which file has to be downloaded for develpoing the application in personal java.
    How to run an application in peraonal java?
    If you give me the steps it will be more helpful to me.
    I couldn't find the samples for personal java anywhere?
    If you give me links for basic samples with source code such as hello world and small games, it will be more helpful to me.
    All of my doubts are very basic one.
    Please help me.
    Thanks in advance.
    Regards,
    Nagaraj.

    Sun has a beta implementation available for download (http://developer.java.sun.com/developer/earlyAccess/personaljava/) which will allow you to run Personal Java on a MIPS/SH3/StrongARM or XScale device running WindowsCE 2.0 or greater. You can also download the Personal Java Emulation environment (http://java.sun.com/products/personaljava/pj-emulation.html) which will allow you to develop and run personal java applications in a Windows or Solaris environment.
    Most JDK1.1.8 compliant applications will run on Personal Java, so a Hello World program would look like the regular.
    public static void main(String[] args) {
    System.out.println("Hello World");
    System.exit(0);
    You can also purchase a full blown commercial implementation of Personal Java for PocketPC at handango.com. Do a search on Insignia Jeode for Dell. You can use this on any PocketPC/XScale pda.
    To run a Personal Java program on Pocket PC. Deploy your jar to the Device and create a shortcut similar to this:
    50#"\program files\Java\bin\pjava.exe" -setcwd "\program files\Java\pjtest" -classpath "\program files\Java\pjtest\pjtest.jar" -file "pjtest.testmain.class"
    The number is arbitrary, but the paths need to point to the directory where you installed Personal java and your jar/application respectively.

  • R/3 access to external application

    I am a newbie in SAP. I have an existing system developed by JAVA.
    How can I do if R/3 completed any transaction(SO, PO), it will send the transaction data to the JAVA application?
    I search on the Internet and found the JCO component that allow R/3 access a JAVA application.
    Or, if it is possible to use BAPI to achieve this?
    Thank you very much~~~~~

    Hi,
    You can't pass data to your java application directly from SAP R/3 but you can execute any window application from sap program.
    Meanwhile you can call sap transaction from you java application using jco connector. there is also alternate many way to transfer data from SAP to Non SAP application.
    Write a program in sap to store data in flat file and read data from file in java application.
    Edited by: Ravishankar Lanjewar on May 19, 2010 3:51 PM

  • Flash as GUI for Java application or C++ executable

    I will need to create a flash frontend for a standalone application, preferrably written in java or c++. The application is needed to access some custom hardware and flash is desired for visual appeal.
    I've been searching the web about displaying flash in java or c++, but I couldn't find anything more than unanswered questions or projects that have apparently died (like swt.flash)
    As a last resort, we could do it as a servlet on localhost, that would be accessed via http by flash running in a projector.. Or even worse, a php script accessing a java application being accessed by flash from a projector.. but that seems like a wery wide workaround.. An application hosting a swf, communicating both ways directly would be much better.
    So.. does anyone have any idea if this is still possible and if so, how?
    Thanks.

    Hi, try to read
    Note 314568 - SAP GUI for HTML functionality / Limitations / Sp. Behaviour
    and all other information directly
    SAP GUI Family
    Regards.

  • Running a java application from a java application

    hello ,
    please who knows how i can run a java application 'B' from inside another java application 'A' and get the error messages (if any) from the application 'B'

    how are you executing application B from application A? Please explain the java code you are using?

  • New JAVA application with data from SAP CRM and R/3

    Hi All,
    We have a requirement to create a new application which will have CRM BP Master data and D&B Data from R/3 and based on authorization different roles be able to edit some of the fields and workflows to confirm the new data .Once users edit the fields in the application the new data will be replicated back into BP Master Data in CRM.
    In our company we are using CRM 7.0 and R/3 4.7 system if we decided to create the application using JAVA can you please let me know the architecture(servers etc) we might need because of the JAVA application.
    How to connect Java application to SAP CRM 7.0. Can you please guide me the data flow structure
    I am not sure if this is the right forum if not please suggest appropriate forum.
    Thanks a lot ,
    Kitcha.

    Hi,
    You can connect to SAP Systems by consuming the RFCs.
    you can use the JCO API to connect to R/3. the [documentation |http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm]
    alternatively  you can use SAP Enterprise Connector to generate JCO Proxies : [The Documentation|http://help.sap.com/saphelp_nw04/helpdata/EN/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm]
    and somr more helps:
    http://help.sap.com/saphelp_nw04/helpdata/en/89/8a185c148e4f6582560a8d809210b4/frameset.htm
    Regards,
    Naga

  • How to call webservice from Java application

    Hi XI gurus
    Pls let me know how to call a webservice from Java application.
    I wanted to build synchronous interface from Java Application to SAP using SAP XI
    For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
    Regards
    MD

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

  • How to call java application in Windows NT environment?

    I have a JDBC application running against oracle database on NT server. There is another non-java application need to call my java application. The programs that non-java program can call are .exe, .dll, and .bat files. I wrote a Dos script and save it as .bat file. Every time this .bat file was called, the dos screen will be shown. Anything I can do to let Dos screen not shown, or anything I can do to wrap my java classes into an .exe file? Thanks in advance.

    If your tool can run a .exe and supply arguments, why not simply invoke "javaw <jvm-args> <class> <class-args>"?

  • How do I start and suspend Java Application from say C++ program

    I want to start a Java application via C++ and on some condition i want to suspend the same program not terminate , but suspend

    Have you tried running the virtual machine from your C++ application ? You can start Java applications from your C++ application using JNI after starting the Virtual machine from within your C++ application. According to the Java documentation you can even now stop the virtual machine from within your C++ program.
    I haven't looked at the 'suspend' detail but I suppose it will not be a problem to call a method via JNI to set a flag to suspend a thread etc.
    There is a tutorial: 'Invoking the Java Virtual Machine' at the following URL: http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html.
    This example seems to work only for version1.1 of the JDK. For JDK1.3, version 1.2, (I am not so sure whether I fully understand Sun's version numbers for Java yet) there is some updates on the JNI for starting the VM from C++. This article is called 'JNI Enhancements'. The URL for this article is:
    http://java.sun.com/j2se/1.3.0/docs/guide/jni/jni-12.html
    You have to set version to: JNI_VERSION_1_2
    There is only one problem. I get an error when calling JNI_CreateJavaVM from C++. I could not find any documentation that indicates how you can go about diagnosing what is causing the problem. Normally in Visual C++ you can just get the probable cause by inspecting GetLastError() or the function itself can return helpful diagnostic (error) codes.
    If you manage to start the VM correctly from within Visual C++ please let me know. My email address is [email protected]
    good luck
    Henko

  • Invoking jvm from a java application

    hello people,
    i would like to run a java application 'B' from within another java application 'A'. i have a thread sub class that does this. it is given
    below: (please pay attention to the run method)
    import java.io.*;
    import javax.swing.*;
    public class InvokingThread extends Thread
    private File n=null;
    private JTextArea outputArea;
    private String message="",action="";
    private String pathToBin,errors,input,classpath;
    private EvaluatorClient clientRef;
    //initialize InvokingThread object
    public InvokingThread(File name,String act,String path,String cp)
    outputArea=new JTextArea(10,25);
    outputArea.setEditable(false);
    outputArea.setLineWrap(true);
    n=name;
    pathToBin=path;
    classpath=cp;
    action=act;
    System.out.println((action.equals("compile"))?"compiling":"executing");
    public void setClientRef(EvaluatorClient r)
    clientRef=r;
    //process action
    public void run()
    Process proce=null;
    try
    if(action.equals("compile"))
    proce = Runtime.getRuntime().exec(pathToBin+"/javac "+n);
    else if(action.equals("execute"))
    proce = Runtime.getRuntime().exec(pathToBin+"/java "+classpath+" "+n); //run application
    Thread.sleep(5000);
    byte[] errorData = new byte[proce.getErrorStream().available()];
    proce.getErrorStream().read(errorData);
    byte[] inputData = new byte[proce.getInputStream().available()];
    proce.getInputStream().read(inputData);
    errors = new String(errorData);
    input = new String(inputData);
    System.out.println((errors.length()>0)?"error string"+errors:"no errors");
    System.out.println((input.length()>0)?"input string"+input:"");
    if (errors.length() == 0 & action.equals("compile"))
    outputArea.setText("Compiled successfully");
    if(clientRef!=null)
    if(!clientRef.isTimeUp())
    clientRef.toggleMenuItemState(4,true);
    clientRef.toggleMenuItemState(5,true);
    clientRef.compilationOutcome("success");
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    else if (errors.length() != 0 & action.equals("compile"))
    outputArea.setText("Compile Errors:\n" + errors+""+input);
    if(clientRef!=null)
    clientRef.compilationOutcome("failure");
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    else if(action.equals("execute"))
    if(errors.length() != 0)
    outputArea.setText("Runtime errors:\n" + errors);
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    else if(input.length()!=0 )
    outputArea.setText(input);
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    catch(Exception e)
    e.printStackTrace();
    System.out.println("thread awake,invoking thread terminating");
    }//end run
    The above code worked when i used it with the rest of my program.
    as we can see the thread waits for 5 seconds before it reads the inputstream and error stream of the sub process returned by Runtime.getRuntime().exec(). But what happens after the thread terminates; i am unable to process subsequent runtime messages/exceptions from the application 'B'.
    so my question goes thus: is there a way that my thread can continually listen to the error stream and input stream of the sub process while application 'B' is still running so as to process any messages returned by java form the application 'B' ? or is there a better way of doing what i set out to achieve i.e running a java application from within another java application
    timi

    Runtime.getRuntime().exec("rundll32
    url.dll,FileProtocolHandler
    mailto:[email protected]&subject=Foo&body=Bar");yawmark, where do you get such information from? (in all seriousness :-) )
    How (the hell) can you find out what args to pass to a program?
    and is "FileProtocolHandler" a place-holder? if so what for?
    thanks, :)
    lutha

Maybe you are looking for

  • I just got a new mac mini. Can I connect 2 monitors via dvi?

    I'm using the thunderbolt port to connect an external hard drive. I have two samsung monitors that have a dvi port and a vga port. i'd like to connect it to my mac mini, is this an option to connect with the hdmi to dvi adapter and a dvi to dual dvi

  • Turn of acknowledgment for IDoc - XI - BAPI Scenario

    Hi, i have a smal BPM where i am sending an IDoc from an <b>3rd PArty System -> XI (making some mappings) -> SAP</b> everything works fine, but in the end i get a Errormessage in the MessageMonitoring on my runtimeWorkbench. the error occure when XI

  • What laptops will work with The Sims 3?

    I want to play The Sims 3, but don't know what laptops will run it. I really don't care if it runs prefectly.

  • SLED date not coming automatically

    hi, As per my client requirement they will enter the production date only in goods receipt and SLED date have to come automatically at GR time. I already maintain the Total shelf life and minimum remaining shelf life in material master.i activated SL

  • Mail randomly deleting stuff

    Lately I've had a lot of trouble with mail. It randomly backspaces when I type the letter L or an apostrophe (this does not happen when I am in any other application). I've been to the genius bar 3 times. They've checked for sticky keys and even inst