How  will I run a java application

hello! i'm currently doing application using Java(TM) 2 SDK, Standard Edition 1.4.2_05, i just want to ask how and where will I run the application. thanks... =)

How?
You just start it using the java command, and the classname (you might have to specify the classpath as well).
Where? Well, that's up to you?
/Kaj

Similar Messages

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000?
    For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
    How can I do that?

    Hi, you have to put it in a Windows service.
    To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
    For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
    Regards,
    Ivan.

  • How do i run a java application in jdk1.3

    im trying to run a java application in jdk 1.3. I created it in jbuilder and i was trying to use the applet viewer.

    http://java.sun.com/j2se/1.3/docs/tooldocs/win32/appletviewer.html
    Jesper

  • How do I run a Java Application on Pocket PC 2003 (iPAQ 2210)

    I am writing an application for the iPAQ 2210. It will need to commuunicate over GPRS sending POST requests to a server (I think I will be using the Java.net package) the user interface will be very simple (a few buttons and text boxes) and will capture the data entered and send it back to the server (via the POST HTTP request) and read the response from the POST.
    I believe I need to use the Personal Profile version of J2ME and I am only using the classes that it says are supported. How do I run the App on the Pocket PC. Having spoken to HP they have said I shouldn't need a virtual machine and that pocket pc 2003 has one built in! Is this so or should I get myself the Jeode Virtual machine?
    Is the Jeode machine the best one?
    Sorry to ask so many questions in one go, I'm a little lost at the moment!!
    Jon

    Hello Jon,
    I will suggest you using IBM WSDD. Although it uses its own version of JVM(J9), but it suits to your needs well.
    I think you should base your project on foundation profile(as you need some gui as well as java.net).
    regards
    -fatbrain73

  • How to constant running a java application

    I have created a java application. My main class is called PTS.class and that has my main method.
    I wish to run this class continously, such that each time the main method completes execution, it is called again.
    I could probably do that by creating a thread which runs infinitely, as below. Is this a good skeleton solution? Will each instance of class PTS be garbage collected after execution, before a new one is created?
    Is there any freeware Java scheduler out there that allows me to do the same thing i.e. running an application infinitely?
    public class TestApplication implements Runnable{
    p.s.v.m (String[] args){
    Thread t = new Thread(this);
    t.start();
    public void run(){
    while(true){
    PTS pts = new PTS();
    }

    I'm not aware of any general Java based scheduling applications, though there certainly may be some. In general schedulers are built into the O/S such as cron. More robust schedulers like AutoSys are native code in part because they need to do O/S specific things like change who a particular process is running as.
    Depending on your needs it shouldn't be too bad to write your own.

  • How can I run a Java-Application with a Desktop-Icon ?

    Hello,
    I have got a problem: I want my Java-application directly by clicking on a desktop icon. Is there anybody who can tell me how to do so ? (I don't want to change my application into an exe File !!!).
    It would be nice if you could give me a detailed explanation (or a link to thus) because I'm not used to the Windows-Classpath System (...as far as I need this...I don't know).
    Thank you very much,
    Findus

    Ok...in the syntax just postet I forgot to set the absolute path of the file...but eveb if I do so it does not work...here the variations I tried...
    D:\j2sdk1.4.1_01\bin>java D:\Viever\Gui
    Exception in thread "main" java.lang.NoClassDefFoundError: D:\Viever\Gui
    D:\j2sdk1.4.1_01\bin>java D:/Viewer/Gui
    Exception in thread "main" java.lang.NoClassDefFoundError: D:/Viewer/Gui
    D:\j2sdk1.4.1_01\bin>java D:\Viewer\Gui.class
    Exception in thread "main" java.lang.NoClassDefFoundError: D:\Viewer\Gui/class
    D:\j2sdk1.4.1_01\bin>java D:Viewer/Gui
    Exception in thread "main" java.lang.NoClassDefFoundError: D:Viewer/Gui

  • How can i run my java Application stand alone?

    Dear all,
    As the topic i want to run my application in a single file without showing the dos prompt or type in the command in dos prompt by the user......
    How can i do that, since in my application , i have used so other package?
    In fact i just want to do something like just run a executable file in windows.
    Thx

    Sounds like your JRE didn't install properly. Either reinstall it or you can enter the file association manually.
    On Windows NT (it may be different on other versions of Windows) take the View/Options menu item from an Explorer window
    Click on the File Types tab.
    Click the "New Type" button.
    Give it the name "Executable jar file" and an associated extension of jar
    Click the "New.." button
    Make the action open
    Make the application something like
    "C:\Program Files\Java\j2re1.4.0\bin\javaw.exe" -jar "%1"
    changing it for your installation.
    Col

  • 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?

  • Running a Java application from a Swing GUI

    Hi,
    I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically.
    So, I want a user to click a button on my GUI, and then have another Java application, which is in the same package with the same classpaths and stuff, run.
    Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
    Thanks,
    Dan

    I don't know if it is possible to run the main method from another Java app by simply calling it...
    But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
    How does that sound? Is it possible?
    What I'm suggeting is:
    Original
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void main(String[] args){
    // Your method calls
    //Your initializing
    doQuery();
    }Revised:
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void doMyQuery(){
    // Your method calls
    //Your initializing
    doQuery();
    // No main needed!!
    //public static void main(String[] args){
    // Your method calls
    //doQuery();
    //}

  • Is it possible to run a java application within a web browser?

    Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers.
    I have a standalone java application written with AWT. Basically this free application lets users to select spectral lines from a big file based on some criteria and plot those selected lines. Yes, it is a very simple application. Now I want to run this application within a web browser so that users don't need to download the application from the ftp site and thus don't need to install in their machine. Is it possible to run this application within browser? If yes, can we get the same plotting function as we run the application separately and where should I start out?
    Thanks in advance!
    kuilian

    Please see the signed applet discussion group for details of how to avoid the applet security restrictions. You can sign the applet, or use the policy file containing {AllPermission} for testing purposes (though not suitable for widespread deployment).
    Regards
    Matthew

  • JDBC Driver 10.2.0.3 will not run under Java 1.4

    While using Oracle Database 10g Release 2 (10.2.0.3) JDBC Drivers my application will not run with Java 1.4
    I keep getting an ArrayIndexOutOfBoundsException, followed by a number. Running 10.2.0.3 with Java 1.5 does not give this error. If using Oracle Database 10g 10.1.0.2 JDBC Drivers that error does not occour either.
    I am running other applications with 10.2.0.3 with Java 1.4 that does not have this error.
    Anyone know about this problem?
    Stacktrace:
    java.lang.ArrayIndexOutOfBoundsException: 103205256
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
    at org.hibernate.loader.Loader.doQuery(Loader.java:674)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
    at org.hibernate.loader.Loader.doList(Loader.java:2220)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
    at org.hibernate.loader.Loader.list(Loader.java:2099)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)
    at org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:332)

    I did not know where to put it. I did a search and saw others who had postet here regarding Oracle driver.
    I do not know why it ended up here. I ment to post it at Java » SQLJ/JDBC
    Message was edited by:
    user619696

  • Oracle Driver 10.2.0.3 will not run under Java 1.4

    While using Oracle Database 10g Release 2 (10.2.0.3) JDBC Drivers my application will not run with Java 1.4
    I keep getting an ArrayIndexOutOfBoundsException, followed by a number. Running 10.2.0.3 with Java 1.5 does not give this error. If using Oracle Database 10g 10.1.0.2 JDBC Drivers that error does not occour either.
    I am running other applications with 10.2.0.3 with Java 1.4 that does not have this error.
    Anyone know about this problem?
    Stacktrace:
    java.lang.ArrayIndexOutOfBoundsException: 103205256
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
    at org.hibernate.loader.Loader.doQuery(Loader.java:674)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
    at org.hibernate.loader.Loader.doList(Loader.java:2220)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
    at org.hibernate.loader.Loader.list(Loader.java:2099)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)
    at org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:332)

    Use ojdbc14.jar with JDK 1.4.
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html

  • Proble regarding running a java application

    hi guys
    i'm new to java environment .
    when i'm running a java application in a console ,
    it is not able to give output in other directories.it is working only in c:\j2sdk\bin.
    i think its the problem of setting classpath.
    can any one help me hw to run java program in any folder.

    You need to add that directory to your PATH. Follow
    the installation instructions more completely.Howdy sheriff Warnerja! How's life in the Schmuckville Home of the Ball-less? Any leads regarding the dot flasher case? I see you're on the PATH.
    Sheriff Warnerja of Schmuckville sensed an indecency plot.
    Here was someone exposing her private dot.
    He went on the trail,
    but of no avail:
    He didn't know where to find that intimate spot!

  • Running a Java Application in Windows

    Hi, Can anyone tell me how to run a Java Application in Windows? I've tried to run it using TextPad 4.5 but it gives me an exception saying it can't find a class defenition. I'm actually using IBM VisualAge for Java to develop the app and it runs fine INSIDE VisualAge and I've exported my compiled class files and so on, to run it stand-alone in Windows. I'm using some custom objects and inner classes, could these be the problem?

    YES! SUCCESS! I exported my class files from VAJ and along with the manifest file that it adds automatically. I opened up the jar with Winrar, extracted the manifest file and added the Main-class: header pointing to my executable and then put it back in the jar with winrar. And PRESTO! I can now run it with javaw! Thanks for your help peeps...

  • I want to run a java application once only.Pl help.

    i want to run a java application once only.
    i.e. if some application is running on Win NT OS then that
    particular appliaction again should not run,but other java application can run.
    Pl help with some sample code.
    Thanx.

    Hi,
    I if understood your question then your requirement is to run the application when the system is on.If this is the case then you can configure your OS schdular to do the job an let the OS do it.You can
    write the java code for this but that will require to run on the OS layer,so better to configure the schedular setting.....But then for some other requirement it cannot be useful....
    think...
    regards vicky

Maybe you are looking for

  • How to use the period in controls?

    Hi, I would like to use a control to validate my current opening balance amounts to the closing balance amounts from the final period in the prior year. However I cannot get it to work as I struggle to find what to enter in the period field for the c

  • Installing Oracle8i Personal Edition, Version 8.1.5 on Windows XP Pro

    I am trying to install Oracle8i Personal Edition, Version 8.1.5 on my system with Windows XP Pro on it. After copying the CD content to the Hard Drive and renaming symcjit.dll to symcjit_back.dll, and running the setup from the oracle folder on the C

  • Aperture 3.1 edits don't show up in iMovie '11

    I am new to Aperture. I am creating a movie with still shots in iMovie. In the photo browser I can select a photo and then click "Open in Aperture". I've done this and edited my photo. But the edits do not show up in iMovie -- even after closing and

  • Publish error on iweb 3.0.1

    I am having trouble publishing to my mobileme domain. I keep getting the +publish error, unknown error+ message. I recently upgraded to snow leopard. Anyone know what is causing the problem. I've deleted my domain and created it twice already.

  • Oracle SAPSR3 User Always lock when trying to startsap

    hi all experts, im trying to build a copy of SAP System for profing concept of Oracle Data Guard.I'm using SOLMAN 7.0 EHP1 with oracle 10 GR2 on windows 2003.i have primary system (solman ; SID=SOM) 1. i build a copy of SAP System with homogeneous sy