"Using Java by eclipse tool"

How to pass run time arguments in eclipse tool.
class Hello
public static void main(String args[])
System.out.println(args[0]);
}

Right click on the main class and select Run As> Run...
You get a window where you could configure how you want to run it. Select Java application (standalone) and click the New button below. It will create a new Run profile with your classname.
Under the tab called Arguments, click on the Variables... under Program Arguments and select ${string_prompt}. Then click Run.
You will be prompted for the command line arguments.

Similar Messages

  • Java me sdk tool 3.0's emulator isnt working

    I'm using JAVA ME SDK TOOL 3.0
    I don't know why this is happeneing but id really appreciate it if someone could tell me why it's happening. Im finished with the app i was working on and decided to take a break. I come back and its not working. The emulator wont start as you can see. It just so happened that i had to format my pc so i did and after installing everything again it worked. Yes i did consider reinsatalling the tool alongside jdk but it didnt work. A week later, today, i come back to check up on the tool and this is what i get.
    What now? Why won't it work? :(
    Starting emulator in execution mode
    *** Error ***
    Failed to connect to device 0!
    Reason:
    Emulator 0 terminated while waiting for it to register!
    bdj-run:
    cdc-run:
    profiler.check:
    open-profiler:
    run:
    BUILD SUCCESSFUL (total time: 18 seconds)

    First a pop up msg would appear saying THE HTTP SERVER COULD NOT BE STARTED. CHECK MESSAGES.LOG FOR MORE INFORMATION. Here's a link to both messages and messages.log http://mycapp.clanteam.com/New%20folder.zip I hope it helps cuz i cant do anything like this. Plus I have apache server installed. Is this because of it? I installed apache a few days ago so it was within the week i stopped testing my complete j2me app. If i uninstall apache and it works somehow that still doesnt solve my prb cuz i cant test my php site.
    Copying 1 file to C:\Users\Leo\Documents\NetBeansProjects\MobileApplication2\dist\DefaultCldcPhone1\nbrun5361921003475598823
    Copying 1 file to C:\Users\Leo\Documents\NetBeansProjects\MobileApplication2\dist\DefaultCldcPhone1\nbrun5361921003475598823
    Jad URL for OTA execution: http://localhost:8082/servlet/org.ne...plication2.jad
    Starting emulator in execution mode
    *** Error ***
    Failed to connect to device 6!
    Reason:
    Emulator 6 terminated while waiting for it to register!
    C:\Users\Omar\Documents\NetBeansProjects\MobileApplication2\nbproject\build-impl.xml:889: Execution failed with error code 1.
    BUILD FAILED (total time: 10 seconds)
    this i got from using netbeans

  • How to compile Java files using Ant in Eclipse

    Hi All ,
    I would like to compile all Java files using Ant in Eclipse.Since am very new to Ant and Eclipse can someone help me to create a build.xml file and let me know how to compile all the java files.
    For ex , I have placed my java files inside the path C:\HEC\Terab.Initially the Terab folder holds 7 jar files which i had decompiled using JD compiler and placed the unzipped 7 folders (which contains the java files ).Now i have imported the HEC project into Eclipse using New ->Project ->Java Project.after importig it throwed me an error saying missing jar files.again i copied the jar files and placed inside Terab folder with other 7 folder.
    Now How i can compile the java files and convert in to class files.Then after compiling the files i will again need to jar all the 7 folder.
    Please tell me the steps i need to follow.How to write an build.xml file ? where i should keep it ? only one build.xml file is enough or should i write 7 build.xml file for each folder ? Please help me out...
    Thanks & Regards
    Kar1983

    put it another way, what I am trying to do is to compile David Brackeen's ch 18 code from his book. The java sourse files can be downloaded here:
    http://www.brackeen.com/javagamebook/
    my question is that how would I complie all of these file so that I can get the program in ch18src\src\com\brackeen\javagamebook\test\ to run?

  • Using Java Sound in Eclipse.

    Can anyone tell me where to put the java soundbanks that i downloaded in order to use Java sound in Eclipse?

    I'm not familiar with this particular issue, but I believe jsresources.org has lots of information on installing soundbanks.

  • Visualage for java to Eclipse migration tool.

    Hi
    Here im trying to convert Visualage for java to Eclipse.I exported all the project in Visualage for java to Eclipse.
    I can get the output of project perfectly ,but the main problem is Visual Editor is not coming properly.
    I just tried 3.1,3.2,3.4 Eclipse versions.
    I couldn't able to get any tool for migration.Is there anything is avaliable .
    Other wise i have to go for some other way .
    U have any qns regarding this issue , plaese u can ask ...
    Thanks.
    Jai
    Email : [email protected]

    @ jwenting
    Hi jwenting
    I just tried 2.0 Eclipse but that is also creating same issue .I want to know any other way to deal.
    please can u just give me some suggestion.
    thanks
    jai.

  • How to use ECLIPSE tool in SAP PI 7.31

    Hi Experts,
      I have written code in normal JAVA IDE ECLIPSE. Not in NWDS. I need to implement that java code in SAP PI 7.31. Could anyone please guide me on the same.
    Thanks,
    SA

    Hi Sai
    I assume that you have written the java code in eclipse for Java mapping in PI. If so then do the following
    1. Export the java class file as a jar file from eclipse
       or take the class file and then make a zip file from it.
    2. Log in to the ESR of PI, go to imported archive and then import this jar or zip file.
    3. Open the operation mapping, select the mapping type as java class, then select the class name from drop down.
    Thanks,
    Indrajit

  • Compiling an RMI client using Java/eclipse

    I have written a RMI Client (which connects to a server service).
    The configuration file is an XML.
    How do I compile an RMI client in ECLIPSE 3.2 using rmic?
    i havent compiled using rmic in eclipse before?
    Any ideas how to do this please?

    this could help
    http://lunar-eclipse.sourceforge.net/

  • Deploying JWS with Eclipse Tools Bundle

    Hi all,
    I'm trying to write a document describing the steps to follow in order to make and build an Hello World application, launchable from a JNLP template provided by the server.
    Here is a summary of the different steps I mentionned :
    - Install Eclipse Tools Bundle
    - Set up the server (mySQL connector, pools and resources)
    - Here is a sample of server.log after a first start :
    14 mai 2010 10:28:18 com.sun.enterprise.admin.launcher.GFLauncherLogger info
    INFO: JVM invocation command line:
    C:\Program Files\Java\jdk1.6.0_16\bin\java.exe
    -cp
    D:/GTB1.2-1/glassfishv3/glassfish/modules/glassfish.jar
    -XX:+UnlockDiagnosticVMOptions
    -XX:MaxPermSize=192m
    -XX:NewRatio=2
    -XX:+LogVMOutput
    -XX:LogFile=D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/logs/jvm.log
    -Xmx512m
    -client
    -javaagent:D:/GTB1.2-1/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
    -Dosgi.shell.telnet.maxconn=1
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Dfelix.fileinstall.dir=D:\GTB1.2-1\glassfishv3\glassfish/modules/autostart/
    -Djavax.net.ssl.keyStore=D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/keystore.jks
    -Dosgi.shell.telnet.port=6666
    -Djava.security.policy=D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/server.policy
    -Dfelix.fileinstall.poll=5000
    -Dcom.sun.aas.instanceRoot=D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dosgi.shell.telnet.ip=127.0.0.1
    -Djava.endorsed.dirs=D:\GTB1.2-1\glassfishv3\glassfish/modules/endorsed;D:\GTB1.2-1\glassfishv3\glassfish/lib/endorsed
    -Dcom.sun.aas.installRoot=D:\GTB1.2-1\glassfishv3\glassfish
    -Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_16/lib/ext;C:\Program Files\Java\jdk1.6.0_16/jre/lib/ext;D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/lib/ext
    -Dfelix.fileinstall.bundles.new.start=true
    -Djavax.net.ssl.trustStore=D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/cacerts.jks
    -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
    -Djava.security.auth.login.config=D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/login.conf
    -DANTLR_USE_DIRECT_CLASS_LOADING=true
    -Dfelix.fileinstall.debug=1
    -Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
    -Djava.library.path=D:/GTB1.2-1/glassfishv3/glassfish/lib;C:/Program Files/Java/jdk1.6.0_16/bin;D:/GTB1.2-1/glassfishv3/glassfish;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/Program Files/Java/jdk1.6.0_16/jre/bin/client;C:/Program Files/Java/jdk1.6.0_16/jre/bin;C:/Program Files/JavaFX/javafx-sdk1.2/bin;C:/Program Files/JavaFX/javafx-sdk1.2/emulator/bin;C:/PHP;C:/pecl;C:/GTK/bin;C:/WINDOWS/system32/wbem;C:/Program Files/Fichiers communs/Roxio Shared/DLLShared;C:/Program Files/OpenOffice.org 2.3/program;C:/Program Files/MySQL/MySQL Server 5.1/bin
    com.sun.enterprise.glassfish.bootstrap.ASMain
    -domainname
    domain1
    -asadmin-args
    start-domain,,,--domaindir,,,D:\ws_gtb-1\.metadata\.plugins\com.sun.enterprise.jst.server.sunappsrv92,,,--debug=false,,,--verbose=false,,,domain1
    -instancename
    server
    -verbose
    false
    -debug
    false
    -asadmin-classpath
    D:/GTB1.2-1/glassfishv3/glassfish/modules/admin-cli.jar
    -asadmin-classname
    com.sun.enterprise.admin.cli.AsadminMain
    -upgrade
    false
    -domaindir
    D:/ws_gtb-1/.metadata/.plugins/com.sun.enterprise.jst.server.sunappsrv92/domain1
    -read-stdin
    true
    INFO: Grizzly Framework 1.9.18-k started in: 31ms listening on port 7676
    INFO: Grizzly Framework 1.9.18-k started in: 156ms listening on port 8181
    INFO: Grizzly Framework 1.9.18-k started in: 125ms listening on port 4860
    INFO: Grizzly Framework 1.9.18-k started in: 219ms listening on port 8084
    INFO: Grizzly Framework 1.9.18-k started in: 110ms listening on port 3700
    ...- Make New Project > enterprise application project : HelloWorld ; add modules HelloWorldClient and HelloWorldEJB ; Finish
    - Right click on HelloWorldEJBlient > Properties > Project Facets > Add Persistence facet ; inactivate JPA Implementation (just use the server impl)
    - set up persistence.xml
    - Write entities and EJB
    - Write the Main class and update MANIFEST.MF file
    - Right click on HelloWorld > Run on Server
    The deployment seems ok, I can run the app using appclient utility,
    but http://localhost:8084/HelloWorld/HelloWorldClient produces the following :
    Console :
    Reading certificates from 1822 http://localhost:8084/___JWSappclient/___app/HelloWorld/HelloWorldClient/HelloWorldClientClient.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\8\7104bac8-3a74cbea.idx
    Reading certificates from 1832 http://localhost:8084/___JWSappclient/___app/HelloWorld/HelloWorldClient.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\15\18233f4f-4833b7d4.idx
    Reading certificates from 2540 http://localhost:8084/___JWSappclient/___app/HelloWorld/glassfish/modules/gf-client.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\1\24f041c1-7777ff5e.idx
    Reading certificates from 18850 http://localhost:8084/___JWSappclient/___app/HelloWorld/glassfish/modules/gf-client-module.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\47\299b3b6f-39bc7e5c.idx
    Reading certificates from 1832 http://localhost:8084/___JWSappclient/___app/HelloWorld/HelloWorldClient/HelloWorldClient.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\57\47a196f9-2caeaba5.idx
    Reading certificates from 11 file:/D:/ws_gtb-1/.metadata/.plugins/com.sun.enterprise.jst.server.sunappsrv92/domain1/generated/xml/HelloWorld/HelloWorldClient_jar/HelloWorldClient.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\21\2d2f7c15-218cd2d1.idx
    #### Java Web Start Error:
    #### Détection d'une entrée non signée dans la ressource : file:/D:/ws_gtb-1/.metadata/.plugins/com.sun.enterprise.jst.server.sunappsrv92/domain1/generated/xml/HelloWorld/HelloWorldClient_jar/HelloWorldClient.jarServer.log (condensed) :
    GRAVE: Adapter[/___JWSappclient/___system] javadb/lib/derby.jar (14 more)
    java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
         at sun.nio.ch.SocketDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
         at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
         at sun.nio.ch.IOUtil.write(IOUtil.java:75)
         at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
         at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:106)
         at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:74)
         at com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.jav
    ...Can anybody tell me what is the problem ? I'm using GF v3 final.
    I'm tried to find a step-by-step tutorial on deploying a minimal Java Web Start application on the Internet, but could not find anyone. That's why I trying to, but I'm blocked...
    Thanks a lot for your help !
    Edited by: LapS on May 17, 2010 2:36 AM

    [oracle:deploy] Caused by: oracle.oc4j.rmi.OracleRemoteException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:The default user for administrator, whose password you entered when the server started up the first time, is "oc4jadmin". Please make sure you use that username. "admin" as the default user is deprecated for some security reasons, which is why, I guess, you see
       <user username="admin" password="" deactivated="true"> Please tell me this works for you or not.

  • "java.lang.UnsatisfiedLinkError" happen when I use java.exe in command line

    When I use Eclipse 3.01 to run the program it has any problem.But If I use the command line "java -classpath D:\Java_prj\Java\NativeMethod\out com.bruce.nativemethod.HelloNative",a error message will appear below:
    java.lang.UnsatisfiedLinkError: no ./out/com/bruce/nativemethod/ in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:832)
         at com.bruce.nativemethod.HelloNative.<clinit>(HelloNative.java:21)My HelloNative.dll and HelloNative.class has all been putted in D:\Java_prj\Java\NativeMethod\out\com\bruce\nativemethod.
    My all source code is here:
    //HelloNative.java
    package com.bruce.nativemethod;
    import java.util.*;
    public class HelloNative{
         public static native void greeting();
         //Load the library
         static {
              System.loadLibrary("./out/com/bruce/nativemethod/HelloNative");
              //System.loadLibrary("HelloNative");
         public static void main(String args[]) {
              HelloNative.greeting();
    //HelloNative.c
    #include "HelloNative.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_com_bruce_nativemethod_HelloNative_greeting(JNIEnv* env,
        jclass cl)
        printf("Hello world!\n");
    //HelloNative.h
    //Generated by javah.exe
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class HelloNative */
    #ifndef _Included_HelloNative
    #define _Included_HelloNative
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     HelloNative
    * Method:    greeting
    * Signature: ()V
    JNIEXPORT void JNICALL Java_HelloNative_greeting
      (JNIEnv *, jclass);
    #ifdef __cplusplus
    #endif
    #endifI thinked the code is not problem.But why I can't not run it use java.exe tool in command line?

    Thanks everybody! My problem has been solved.The path "./out/com/bruce/nativemethod/HelloNative" is right because it can run in Eclipse 3.01.I don't agree use the absolute path.If do so,it may not use in another machine. The problem is when I use the "java -classpath D:\Java_prj\Java\NativeMethod com.bruce.nativemethod.HelloNative" in the command line windows,I have putted it the C:\ directory to excute.laterly,I putted the command in the D:\Java_prj\Java\NativeMethod,the result "Hello world!" is appear.

  • Can I use Java Creator 2 with old JRE/JDK 1.4.2_07??

    I am planning to install new Java Creator 2 but I am having JRE and JDK 1.4.2_07 and I am using mysql 3.23.55 and I want to integrate it.
    Currently my OS is Windows XP SP2 platform with processor Intel Centrino 1.4 and RAM 256 MB... I know the ram is not sufficient and i am planning to upgrade it.. but the problem is can i still remain to use the old JRE and JDK 1.4.2_07 and i am also using mysql 3.23.55... all the driver and engine are out to date but can i still use it and integrate it with java creator 2?
    The questions are:
    1) Can I use Java creator 2 with those old engine?
    2) What java compiler or development tools i can use to develop java standalone application?
    Thank you

    When the jar file is expanded within Eclipse, it shows that the mail.jar file is built with 1.5.0; I think? Here is the header contents of the MANIFEST.MF file, note "Created by."
    Manifest-Version: 1.0
    Implementation-Version: 1.4
    Specification-Title: JavaMail(TM) API Design Specification
    Specification-Version: 1.3
    Implementation-Title: javax.mail
    Extension-Name: javax.mail
    Created-By: 1.5.0 (Sun Microsystems Inc.)
    Implementation-Vendor-Id: com.sun
    Implementation-Vendor: Sun Microsystems, Inc.
    Specification-Vendor: Sun Microsystems, Inc.
    SCCS-ID: @(#)javamail.mf     1.6 05/12/09
    This is causing problems, because anytime I try to use this file, I get signing errors. I have several Web Services built by BAE and Plumtree that are running on 1.4.2; and therefore I am stuck with 1.4.2. I did try to remove the SUN_MICR.* files, thinkning it would resolve the signing issues, but then that caused other problems. I can provide you with code that demonstrates the problem.
    Is there a place where I can get a mail 1.4 jar file built with 1.4.2? that would most likely solve my problems.

  • Up an running with Java. What tools to download?

    Hello, I use to work with Java applications about three years ago, but had switched over to another language. Now I need to develop code using Java again. In fact, I need to reuse some of the code I developed a few years ago. The code does alot with animations. So here is my question.
    "What tools do I need to get up and running with Java?"
    1. What compiler to use (recommend the best open source editor, or one that is not that expensive)?
    2. Where is the Java SDK that I need to download?
    3. Will my three year old code still be compatible with the SUN, Java code I wrote 3 years ago?
    Ralph

    Actually Jwenting is right, IntelliJ is by all measures the best IDE.
    I have used textpad, programmers notepad (which I still use for some things), VIM, eclipse for a number of years, intelliJ for a short time, and Netbeans since earlier this year.
    textpad - Great place to learn the basics, but once the basics are down you need to find an IDE.
    Programmers notepad - love it, still use it for some languages, has some features you will find nowhere else
    VIM - You have your vi lovers and your vi haters, I would say I fall into the haters camp but still keep up with it because when you need an editor to make a quick change on some obscure system with very little on it, some version of Vi will undoubtedly be there. Once you get into the flow it is not bad, but there is lots of annoying things about vi and its offspring.
    Eclipse - Great IDE, was the better of the free ones for a long time. For me eclipse's strength became it's albatross. That is plugins ofcourse. There are literally thousands of plugins that can make eclipse do just about anything you want. The problem is there is very little oversite so some plugins are great, some good, some ok, some suck, and some are deliberately hostile. You don't really know what you are going to get until you try it, but removing it can be a pain so sometimes you are stuck. Plus getting the plugins to play nice with each other can be a chore, the more plugins you have the harder it gets to get new ones to play nice. It was after a whole day stint trying to get eclipse to work again after picking a bad plugin that i simply decided to give netbeans 6.0 a try since it had what I wanted packaged in already.
    IntelliJ - Only got to use this for a short time as they went ahead and bought it at my last job after I gave my months notice for leaving. Guess they figured it would be easier to replace me that way. From the little I got to play with it, it was extremely user friendly to the point of being a pleasure to work with, You definitely got what you paid for.
    Netbeans 6.0 and higher - Netbeans pre 6.0 sucked. Even 5.5 was not as good as eclipse at the time of it's release, but was a sign they were headed in the right direction. After releasing version 4 only to have it suck and laughed at in the java community since eclipse was hundreds of times better Sun realized netbeans was making them look bad. So they decided to fix that and decided the best way to fix it was to model netbeans as closely after IntelliJ (which was the best even back then) as legally possible. With each release they get closer to realizing this goal, and since it is free with each release netbeans picks up more and more former eclipse fanbois. It is now at the point where most people following the eclipse vrs netbeans war will agree that netbeans has taken the lead and has more current users than eclipse. I would even wager that most of the people who said netbeans was best in this thread were not long ago eclipse fans. Bottom line, of the free IDEs netbeans is the better choice at this point.
    But I got to ask, when you say a salary of R8,000 - R12,000 do you mean monthly income or annually? If annually can you even survive on about $1,000 in US dollars for a year? I mean I make about 8 times that in a month, after uncle sam takes his portion, and i wouldn't call myself rich by any means.
    Also jwenting have you tried the newer netbeans? I think if you do you will see they are strikingly similar to IntelliJ in many ways.
    JSG
    Edited by: JustSomeGuy on Dec 5, 2008 7:24 AM

  • Using Tomcat in Eclipse?

    Hi,
    Can you tell me how to use Tomcat using Eclipse?
    Whether we have to plug-in Tomcat in Eclipse?
    I'm using Eclipse3.1.1 Version.
    Thanks,
    Hari

    you can use "com.sysdeo.eclipse.tomcat_3.1.0" plugin. Just download the zip file and expand it in plugin folder of eclipse. I am using it on ecipse 3.1.2 it works fine.
    By the way you need to set certain parameters in Eclispe.
    GO to windows-preferences-java
    Installed JREs - add the path of your j2sdk1.4.(eg.c:j2sdk1.4.2_11)
    then Go to windows--preferences--tomcat-
    advanced - fill your tomcat base
    JVMSettings - JRE drop down box select the j2sdk you added
    JVMSettings - classpath - add tools.jar from your j2sdk lib folder
    JVMSettings - Boot ClassPath - add rt.jar from your jre lib folder
    SourcePath
    Select your java project you are working with
    Then click ok.
    Try to run eclipse in clear mode.
    Please let me know if this worked. I also did the same procedure and It is working fine.
    Meena

  • Java code coverage tool for Java Card?

    Hello,
    I am looking for "Java code coverage tool" that can be used for testing Java Card Applets.
    Has anyone tried EMMA<http://emma.sourceforge.net/> with JCWDE, or other tools?
    Any information appreciated.
    ichara

    JCOP Tools 3.0 for Eclipse 2.1 support code coverage with the JCOP simulations for Java Card 2.1. The newest JCOP41 simulation for Java Card 2.2.1 does not yet have this feature.
    Code coverage information is shown in the Profiling view, when it is enabled in the Launch Configuration. The editor also shows colored bars next to source lines to quickly identify dead code.

  • How to use Java Robot to click the same button multiple times

    Hi All,
    I am trying to use Java Robot to turn a Windows utility located on the Desktop by clicking the same button on and then off with the following code:
      1.  Robot robot1 = new Robot();
      2.  robot1.mouseMove(400,180);
        // Turn on the utility
      3.  robot1.delay(100);
      4.  robot1.mousePress(InputEvent.BUTTON1_MASK);
      5.  robot1.delay(100);
      6.  robot1.mouseRelease(InputEvent.BUTTON1_MASK);
        //Wait for 2 minutes
      7.  robot1.delay(200);
        // Move the mouse to disconnect button
      8.  robot1.mouseMove(400,180);
        // Turn off the utility
      9.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    10. robot.delay(100);
    11. robot.mouseRelease(InputEvent.BUTTON1_MASK);However, only the first click (line 1 - 7) worked. Everything from step 8 onwards doesn't appear to be doing anything. Even instantiating another robot2 to carry out step 8 - 11 did not work either. Also have tried running steps 9 - 11 only. ie skip 8.
    My aim is to turn this tool on and off at regular interval.
    Any assistance would be greatly appreciated.
    Thanks in advance,
    Jack

    Hi darth_code_r and Vincent,
    Both you and Vincent are right about insufficient time between the release ( 6 ) of mouse button and step ( 9 ) press the same button again to turn it off. You are also correct in saying that it was not necessary to move the mouse again ( 8 ) since it was sitting on the right button already.
    Below is the code I have ended up with which worked for me:
    1.  Robot robot1 = new Robot();
    2.  robot1.mouseMove(390,150);
    4.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    6.  robot1.mouseRelease(InputEvent.BUTTON1_MASK);
         //Wait for 3 minutes
    7.  robot1.delay(30000);
    9.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    11. robot1.mouseRelease(InputEvent.BUTTON1_MASK);This utility also takes a few seconds to turn itself on and vice versa. As a result, it is necessary to give it sufficient time to turn on prior to turning it off again with the second mouse press.
    Thanks to both of you very much,
    Jack

  • How to use Java code signing certificate in oracle 11i

    Hello,
    I am try to configure java code signing certificate in 11.5.10.2 application. we got java sign certificate from verisgin. SA's imported the certificate and created alias XXX_XXX with password and passphrase.
    I am able to see the my certificate. keytool -list -v -keystore xxx_xxxx.jks -storepass Password.
    how do I use it. I am using Enhance Jar Signing for EBS DOC ID 1591073.1.
    could you please give me some advice on it?
    Thanks
    Prince

    Hussien,
    I find out apps keystore keypassword and storepassword, I imported the java code sign certificate. I generated Jar files through adadmin, but I am getting  warning error
    adogif() unable to generate Jar Filers under JAVA_TOP.
    executing /usr/jdk/jdk1.6.0_45/bin/java sun.security.tools.JarSigner keysotre **** -sigfile CUST Signer /apps/......
    Error JarSigner subcommand Exited With status 1.
    No standard output from jarsigner JarSigner error output: Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)         at java.security.AccessController.doPrivileged(Native Method)         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)         at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: sun.security.tools.JarSigner.  Program will exit. WARNING: The following path(s), defined in /apps2/property/product/tst/appl/cz/11.5.0/java/make/czjar.dep as elements of the output:   oracle/apps/cz/runtime/tag WARNING: Copying cztag.lst from the old fndlist.jar ...   About to Analyze flmkbn.jar : Fri Nov 22 2013 10:45:51
    Please let me know if you have any idea. Thanks Prince

Maybe you are looking for