Integrate JCard commands with Java GUI Applet

Hello everybody.I have just tested some existing applets from the Java Card Toolkit 2.1.1 and I have also created and tested successfully my own applet.
I am thinking to develop a friendly G.U.I in general Java(probably can be an applet or an application) using the Visual Cafe for Java from the Symantec in order to integrate the command Dos line for taking control of the Java Card Toolkit commands into the GUI Java applet.
(e.g.//READ the record
0x00 0xB2 .........//It is assumed that this is contained in the file read_record.scr file
//and from the dos command line you can just write:
//c:\>apdutool read_record.scr )
For example, I will just create a button to send the above APDU to the jcwde.(e.g READ a specific record or add A NEW RECORD,Delete this Record,Store this RECORD)
I was wondering if it is possible to integrate the DOS command line with a Java applet(not a Java Card applet but GUI applet in general Java) and everything can be hidden from the user.
Or can I integrate the DOs line only with a Java application, and how?(probably with the System library...?)
I will appreciate any thoughts and assisstance for this idea.
Thank you.

Hello ! ya I have developed a GUI If you want I can sent the source to u .It's simple You can do fuctions using simply by click of a button you can run the simulator .You need not go to prompt every time .
Bye :)
Neelesh .
[email protected]

Similar Messages

  • Java application communicate with java card applet without java card

    Can I write java application to communicate with java card applet without using java card?
    Can I send APDU to java card applet on computer(not install in java card)? If it's not, how can I write?
    Best Regard,
    Thanawan

    Your JCOP simulator implements a JCVM/JCRE according
    to specs. The CREF does that same thing excepts it's
    only simulates the API without crypto or third party
    applets. JCOP simulator is more then that. They are using thesame_ codebase for simulator and for oncard JCVM. Basically you are dealing with the same environment in both cases.

  • I need to Integrate microsoft outlook with java application

    I need to integrate outlook express with java application
    can anyone help how should i proceed with that
    Thanks in advance

    I'm not sure that there is a generically understood
    meaning for the word. Why do people enjoy being nasty
    on these threads? I was just trying to get some more
    info to help the guy out. Aren't these forums around
    to help solve problems? Why not be positve?the humorous remark was not directed at you, but merely a commentary on the sheer magnitude of obtuse questions received here. i think it is positive, because it may enlighted those who intend to ask questions to better formulate theirs before submitting.

  • Invoking Unix command with java stored procedure

    Hi,
    I have a perfectly working environment and now I am trying to replicate the same in another server. I have a java stored procedure which invokes the Unix command using java Runtime.exec() in my code named "run". I am sure that the code is called and the java class run is resolved in oracle as I could see that in dba_java_resolvers dictionary. But I am not sure whether the function in java is called or whether a exception is thrown. how to identify this? Could there be any thing to do with settings in oracle side? please help me.
    Thanks in advance,
    Marutha

    Hi,
    Do you get any output while running the code?
    I'm testing similar solution and if there are any errors or Oracle can't execute the program due to permissions or other issues the error information will be displayed. Also in the Java class itself you need to catch exceptions and print stack trace to standard output.
    declare
    x number;
    begin
    dbms_output.enable(1000000);
    dbms_java.set_output(1000000);
    x:=system_command.run_command('testconnect.sh');
    dbms_output.put_line('Returned value='||x);
    exception
    when others then dbms_output.put_line('Sql error='||substr(sqlerrm,1,250));
    end;
    <system_command.run_command> - replace with a call to your java stored procedure.

  • Printing local with JAVA Gui 7.10 on a MAC

    Hi,
    I installed the JAVA GUI 7.10 on my MacBook Pro and it all works fine. The only problem I have is local printing. Since I do not have SAPLPD anymore, I am not able to use local printing. Is there another possibility to do local printing with a Mac?
    Thanks Maarten

    Maarten,
    Yes.
    The following text is from Chapter 2. "Release Notes" / Section 2. "Missing Features" of the JavaGui HTML documentation:
    Front-End Printing Using SAPLPD (access method 'F') is only supported on Win32 platforms. For newer back-end versions, a new printing architecture for all platforms supported by SAP GUI for Java (access method 'G') is available, see SAP Note 821519 for details.

  • Need help with Java GUI

    I'm a bit unfamiliar with the features of the Java GUI which I'm using for an online game I'm making. Specifically, I can't move around the different components the way I want to. I want to have my game on one frame, but made up of 3 different parts. The top half will be the the actual game where the images are displayed, then below that will be a scroll pane to show all the messages the player has received, and the bottom part will be a text field so the player can send messages. I have the text field and scroll pane working, but the problem is that the scroll pane takes up the entire screen (except for the text field) and I can't find any way to resize it and move it to the bottom, just above the text screen, the way I want it to be. I'm using JTextField for the text field, and JDisplayArea and JScrollPane for the scroll pane.
    Here are two images in case you can't visualize what I am saying. This is what it looks like now:
    http://img127.imageshack.us/img127/1294/beforeob1.jpg
    And this is how it should be:
    http://img127.imageshack.us/img127/8724/aftedzu7.jpg
    Help would be greatly appreciated. Thanks in advance.

    Does the class that implement your game panel provide a meaningful return value for the method "getPreferredSize()"? I guess you use a BorderLayout, don't you? In this case the game panel isn't visible because it doesn't tell the LayoutManager what size it wants and so it gets a 0,0 size.
    Greetings
    Stefan

  • EXECUTE DOS COMMANDS WITH JAVA

    I'm new to java and I want to execute dos commands by java
    can someone help me by by anyway?
    like tell me the packages or methods I need
    or give me links to sites?
    thanks

    No Arguments:
    try {
            // Execute a command without arguments
            String command = "ls";
            Process child = Runtime.getRuntime().exec(command);
            // Execute a command with an argument
            command = "ls /tmp";
            child = Runtime.getRuntime().exec(command);
        } catch (IOException e) {
        }With Arguments:
    try {
            // Execute a command with an argument that contains a space
            String[] commands = new String[]{"grep", "hello world", "/tmp/f.txt"};
            commands = new String[]{"grep", "hello world", "c:\\Documents and Settings\\f.txt"};
            Process child = Runtime.getRuntime().exec(commands);
        } catch (IOException e) {
        }

  • Problem in Execution of DOS Commands with JAVA.

    I am trying to execute DOS Commands and FTP commands using Java Programming Language and Trying to get the output for further processing.Actually I want the exact output what DOS and FTP give after execution of a their corresponding commands.

    Process p = new Process("dir");
    InputStream is = p.getInputStream();

  • How to send AT commands with JAVA?

    Hi,
    to get the cell id on a mobile phone I would like to send "AT+CREG=2" as an AT command to the mobile phone.
    Is there an API for getting network registration things like the cell identification of a gsm mobile phone or is there a possibility to access the mobile phone with AT commands?
    In MIDP 2.0, there is the possibility to access serial ports of a mobile phone. Probably this will work?
    I would be glad, if anyone could give me an idea. I'm investigation since weeks.
    greetings,
    Ralf.

    Hi
    i really don't know, but when i read your posting i thought that this may not be possible because it would break the java security concept.
    I guess, if you'd like to get any plattform/device related information you would need to have a vendor/device specific api.....
    but as i said, i don't know, i just guess...

  • Sending unix command with java

    Hi! I need to terminate program from server with "Ctrl+x" command.
    How do I send this kind of command to the server?

    Uh, by sending a
    new String(new char[]{'\030'})?

  • Integrate Microsoft IE with Java!

    i have developed a speech synthesizer standalone application, and i want to integrate it with Microsoft IE,
    for example (i) A button that can be appeared at the tool bar of IE,
    It can pass the source of Html file to my program.
    (ii) and it should know which webpage to be processed if there are several webpages is running.
    Is that possible to implement it~~?
    thanks~~

    Write it as a plug-in, see msdn for details

  • Help/Tutorial on Using Xpress with Java

    Hi forum:
    Can anyone point me to a tutorial or article on how to use Java method from Xpress (in NetBeans).
    I have created a java class in the 'Custom Java' folder for the IDM prodject in Netbeans - I am not terribly sure what next steps to take.

    Yes..The sun documentation does seem to be written in such a way to try and impress rather than to inform.
    But...
    XPRESS and Java, you only got one or two options.. as the previous guy said.. look at the Workflow, Forms and Views docu. There is a section called Java and Javascript expressions in the XPRESS language section.
    I guess the <invoke> is the most commonly used XPRESS command with java. You invoke a method of a class.
    The trick is figuring out how to introduce your new class into the IDM environment so that your XPRESS can find it.. and then call the method via the XPRESS invoke.
    Typically, you create a .jar of your custom classes, drop this .jar into $WSHOME/WEB-INF/lib and restart your App server.
    Do a search of the forums for "custom classes"
    I totally agree with you that SUN documentation is a perfect example of the 80/20 law.

  • Send SSH Command using java

    Ok. I hate this, but this is they way they have implemented it. I do not have access to the server code that this applicatio sits on, so I am only able to send specif commands with java through there interface. One of the commands for example is: password_reset "username" "new_password", there is also search_user "username", and uinfo "username". One of the command I really want to send is the password_reset command, but before I can do that I need to establish a ssh connection with username, and password. Not the username or password of the user that I am resetting, but the username and password of a user that has the privilege to reset passwords.
    anyway someone said I could just user the execCommand("password_reset " + username + " " + password ) command. If that is true then How do I do the ssh connection? any examples would be great. I have one, but it is not working for some reason.
    Here is the code:
    import java.io.BufferedOutputStream;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import com.trilead.ssh2.ChannelCondition;
    import com.trilead.ssh2.Connection;
    import com.trilead.ssh2.Session;
    import com.trilead.ssh2.StreamGobbler;
    public class SshTest
      public static void main(String[] args)
        Connection conn = null;
        try
          String host = "something.server.net";
          String user = "someuser";
          String user_pass = "somepassword";
          conn = new Connection(host);
          conn.connect();
          conn.authenticateWithPassword(user, user_pass);
          Session sess = conn.openSession();
          // vusertochange
          sess.execCommand("password_reset vusertochange newpasswordtest");
          /* Read all output with streamgobblers */
          StreamGobbler stdout = new StreamGobbler(sess.getStdout());
          StreamGobbler stderr = new StreamGobbler(sess.getStderr());
          /* Send the password (with a newline!) */
          BufferedOutputStream stdin = new BufferedOutputStream(sess.getStdin());
          stdin.flush();
          //stdin.close(); // This is optional
          /* Wait until the session has ended, maximum 60secs */
          int res = sess.waitForCondition(ChannelCondition.EOF, 60 * 1000);
          if ((res & ChannelCondition.EOF) == 0)
            throw new IOException("A timeout occured while reading the output.");
          /* OK, by now the whole output has been consumed by the two StreamGobblers */
          /* Close the session */
          sess.close();
          /* Show the result of STDERR */
          BufferedReader stderr_reader = new BufferedReader(new InputStreamReader(stderr));
          while (true)
            String line = stderr_reader.readLine();
            if (line == null)
              break;
            System.out.println("STDERR:" + line);
          /* Show the result of STDOUT */
          BufferedReader stdout_reader = new BufferedReader(new InputStreamReader(stdout));
          while (true)
            String line = stdout_reader.readLine();
            if (line == null)
              break;
            System.out.println("STDOUT:" + line);
        catch (Exception e)
          e.printStackTrace();
        finally
          if (conn != null)
            conn.close();
    The error I get is:
    STDOUT:cshell won't execute arbitrary command 'password_reset vusertochange newpasswordtest'
    any ideas what I am doing wrong?

    orozcom wrote:
    STDOUT:cshell won't execute arbitrary command 'password_reset vusertochange newpasswordtest'It sounds like the permissions with the user you're connecting with won't allow this operation.
    Don't know much about this, but maybe try 'su' and then 'password_reset ...' instead?

  • Workflow intergration with Java

    Dear All,
    I have the requirement in which I have to integrate the workflow with Java.
    The scenario is like the person want to trigger the workflow from web or mobile device , and want to do all the relevant things related to workflow like approval rejection through web or mobile device.
    Is this possible. If yes then how , how we can get the action user done on the web or mobile device.
    Do i have to make any RFC or BAPI for this?
    Kindly help and give suggestion to achieve this.
    Thanks in advance.
    Regards,
    Rachit Khanna

    Hi Chandra,
    As mentioned in the doc, I am looking for the below node which is not there in my system.
    From my system:
    I think the reason might be same for not having the node here in SPRO and not having the WF standard services(WFSERVICE andWFHUBSERVICE).
    By the way the package is there.
    Thanks & Regards,
    Hafizul

  • How do I test a Java card applet with different AIDs on the fly?

    ... Like sweeping cards from employees in a queue of people lining up in the morning?
    When I created my applet, the aid is a fixed value inside the class.
    Whenever I wanted to test it with another value, I changed that AID and rerun the applet.
    I find it very cumbersome that needs to be rerun and rerun, over and over again.
    How do I test the applet easily with any values of AIDs that I'd like to put in, on the fly.
    I know I can't simulate the sweeps of card in the applet because I can't have a main method with a signature
    of Strings[] args or String[] args. I can only have JUnit to help me out, but still java card doesn't allow either
    main(Strings[] args) or TestCase to inherit from.
    Thanks
    Jack

    your question is hard to understand but:
    an applet always has one definite AID and you cant change it after install as far as i know
    a) you want to test many cards with diffrent AIDs?
    ->send a list of select commands and check the return values
    b)you want one card with the same applet to be available for many AIDs?
    ->install many dummy applets forwarding the commands to one core applet
    c)i think i didnt get your point :/

Maybe you are looking for

  • Get the file list of a given directory

    does anyone know how to get the file list of a given directory? I tried "list"/"filelist" but the class not found. THanks!

  • CIF integration of characteristics that were deleted at APO

    Hi Experts, we had some characteristics in APO that were transfered from the ECC. But since it was no longer used they were deleted at the APO system. But now we need to use againd some of these characteristics, and when we try to integrate this char

  • Issue with Weblogic services in Linux OBIEE 11G

    Hello All, I have a OBI 11G set up on a linux OS.I am facing a issue with weblogic service. Whenever I am trying to start the Admin server from command line using its .sh , it is starting successfully. But whenever I am closing that Linux session or

  • How do I resolve "internal error has occurred" using Reader XI?

    I am getting a message that an "internal error has occurred" when downloading and viewing a pdf using Adobe Reader XI. I have uninstalled / installed Reader with the same issue. how do i resolve the problem?

  • Rule based Optimiser in 10g

    Can anyone tell me if there is still a rule based optimiser in 10g, i have heard that it has been removed? Is this correct?