Executing an application without JDK

This may seem like a very back-to-basic kind of a question.
I have created an application on my machine. The problem is how do I run it on my users machine?
How can I run this on another machine which may not have jdk installed?
if the users machine has browsers, JVM will be there, right?
Is there anyway, I can run my application without downloading jdk? For instance, would having jre suffice?
Is there any other , easier way of executing the application?

The JRE is the same thing as the JDK, its just missing the compiler. Any application compiled using a JDK can be run on the JRE of the same (and usually newer) version.
If you're distributing an applet, then you don't have to worry because the Java enabled browsers will most likely have enough of a VM to handle it.
If you're distributing a stand-alone application, though, the users will have to have the appropriate JRE (or JDK) already installed. I've found its usually a good idea to include a link to a site where they can download the correct JRE if they need to.
Using a third party-app to turn the byte-code into platform specific machine code is usually not the ideal solution as its usually not very clean and can turn into quite a mess if you ever have to update the code.

Similar Messages

  • How to execute web applications without deploying them?

    How can I execute web applications without deploying them (without mentioning them in the server.xml)?
    I have an IWS 6.1 SP1 installed with default parameters (JES). I would like that a posix user could execute his own web application without administrator collaboration.
    Does it exist some sort of "autodeploy" like in tomcat?
    (I know about the invoker mapping in default-web.xml, just I don't realy understand what does it eventuate. I tried to unzip webapps-simple.war in the directory $IWS_SERVER_HOME/webapps/$instance_name/servlet/tmp/
    but the http://a.a.tg/servlet/tmp request failed:
    javax.servlet.ServletException: WEB2784: Wrapper cannot find servlet class tmp or a class it depends on
    ----- Root Cause -----
    java.lang.ClassNotFoundException: tmp
    How can I solve this? Users should have write permission to the directories in the classpath to put their servlet.class files into? Bad idea...
    (I tried to "execute" the $IWS_SERVER_HOME/plugins/java/samples/webapps/simple/webapps-simple.war)
    (Sorry for my language skills)

    Do as many of the rest of us do, until this behavior is changed (if ever). Eport your WEb gallery to your Hd and use an FTP client, there are so many, including Drreamweaver's, and Shareware ones, and upload just the relevant files/folders. Some can even check and do this for you.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • Run applications without  JDK/JRE?

    Dear Sir/Mdm,
    Is it possible if i could run a compiled Java application on a PC WITHOUT jdk or jre installed? If it is possible, could you share some ideas with me? Essentially, i just want to double click a certain icon in order to run the application, and no more hassles. And i want to keep the entire package small & without JRE. Please advice. Thank you for your time and attentions.
    Sincerely Budy

    The options I would consider: use an executable jar or my favorite, Java WebStart:
    http://java.sun.com/products/javawebstart/
    Keep in mind platform independency, if this is that much of a problem, bundle your application with the latest JRE.

  • To run the java application without jdk package

    i would like to know whether possible to make the java .class file as .exe file to run in window environment without the help of jdk package.....if the answer is yes,,,,,is it going to use the jvm???is it come together with window os or not and start from which windows version?? or do we need to use the jre??? actually i would like to make installation package to install an application in windowsxp....i know how to do that one in vb and i've done that one before using visual studio 6.0.....is there any possible way....but please explain in easy words and way coz i might not understand if too technical...nobody can help me in my college,,,even lecturers.....thanks a lot

    i would like to know whether possible to make the java .class file as >>.exe file to run in window environment without the help of jdk >>package.....Yes it is possible, there are many tools like one mentioned above to convert your java .class program to .exe and you dont need jdk for that, though you will need JVM
    if the answer is yes,,,,,is it going to use the jvm???Yes it needs a JVM
    is it come together with window os or not and start from which windows >>version?? You need some tool like PJ2Exe or one mentioned above to convert it to .exe, it wont be available with OS.
    or do we need to use the jre???Yes you will need to install JRE for the JVM
    actually i would like to make installation package to install an >>application in windowsxp....i know how to do that one in vb and i've >>done that one before using visual studio 6.0.....is there any possible >>way....Yes it is possible,
    Make a .exe of your application and using VB make a setup file which takes care of installing JRE as well as your application.
    Regards
    Rohan

  • How can I run a application on a machine without JDK installed?

    Hi all,
    I'm new to java,I want to know if there's a way to run a application on a machine without JDK installed, I noticed that some server application such as Domino have CORBA applications running in background,how can I set up such environment without JDK installed?
    Thanks.

    I believe there are two basic ways you could go about this.
    1) Install the JRE (Java Runtime Environment) on the machine in question.
    2) Use JSP to make a server side app that interacts via browser on the local machine.

  • Is it possible to execute a simple java webdynpro application without deploying?

    Hi,
    I am a beginner and just have created an elementary java webdynpro application that enables to switch between two views. When I tried to execute the application it prompts me to configure server settings(above screenshot).Is there a way to test the working of my app without deploying in server.
    regards,
    Ajeeth Kumar S

    Hi Jun Wu,
    Because without deploying, it doesn't allow me check how my java webdynpro application works!!
    I  need to execute my java web dynpro application and I dont have any access to SDM pins/passwords.
    Please share your valuable thoughts on the same.
    regards,
    Ajeeth Kumar S

  • Error when I execute an application with the java command in a DOS prompt

    Hi:
    I have a trouble. I edit the most simple program in Java: hello.java
    In DOS prompt, I compile the program. The result is the file hello.class
    c:\> javac hello.java
    However, I try to execute this program with the command java
    c:\> java hello
    and the DOS prompt send me an error like this: Java.exe has a problem and must be closed.
    I press the option "Don't send". After this, the DOS prompt returns empty and it doesnt execute the application:
    c:\>
    By the way, in an IDE editor like Gel, the file hello.java is compiled and executed correctly without problems.
    I edited other simple Java files, I compiled them succesfully and I can't run them in a DOS pormpt. The result is the same dialog box: "Java.exe has a problem and must be closed".
    The question is: Why don't these programs run in a DOS prompt?
    My Operating System is Microsoft Windows XP and the Java compiler version is: 1.6.0_13
    Thanks in advanced.

    Hi again:
    What happens when you type "java -version"?
    Answer:
    java version "1.2"
    Classic VM (build JDK-1.2-V, native threads)
    What is the value of your %PATH%?
    Answer:
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Archivos comunes\Adaptec Shared\System;C:\Archivos de programa\Executive Software\DiskeeperLite\;C:\Archivos de programa\QuickTime\QTSystem\;C:\Archivos de programa\Java\jdk1.6.0_13\bin;C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;e:\Microsoft SQL Server\90\Tools\binn\;C:\BITWARE\;C:\Archivos de programa\Archivos comunes\Ahead\Lib\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    Have you considered running Linux?
    Answer: No, because Linux is more complex.
    Additional information:
    My Operating System is: Microsoft Windows XP Profesional Version 2002, Service Pack 3, running on an Intel Pentium 4, CPU 2.4 Ghz, RAM: 2.23 Gb

  • Run External application without Exiting main application

    Hi,
    I am trying to implement a function that executes the external program from within my java application. I am using windows xp. I had googled for this and found some code but so far I am able to run the application in a condition if my main application exits. Instead I want to run the application without exiting my main application. How can I do that:
    Code I am using is:
    ========================
    try{
    Runtime.getRuntime().exec("external program");
    System.exit(0);
    catch (Exception err){
    err.printStackTrace();
    System.exit(-1);
    =========================
    my problem is I cannot run the external program without the line "System.exit(0)". If I remove that line, the external program only starts after I exit my main java application. Is there a way to run the external application without leaving the main application?
    By the way I am using the latest version of JDK 6 update 2 and Netbeans 5.5.1
    Thanks

    I tried and I tried and I couldn't make the same problem occur unless I specfically had a long task execute BEFORE calling the runtime command. See the code below:
    I tried a bunch of things, including having a GUI run before the Runtime call, after the runtime call. Neither affected the movie from being played.
    I tried with different versions of the runtime command, none of it made a problem.
    I tried running the application with a long task that would keep the main thread busy for a while AFTER I launched mplayer - no problem.
    The only thing that made the app work the way you describe was when I built the long task that keeps the main thread active for a while BEFORE I launched mplayer (which is the state of the code as I pasted it below).
    So my guess is that you have a single threaded application and you add the call to mplayer at the very end of your program's execution - thus it doesn't get called until the last thing. My suggestions:
    1) Move the call to the Start of your code, not the end
    2) Move your other work to a new thread so that it can be kicked off without holding the main thread in check.
    package movies;
    import inheritance.BaseWindow;
    import java.util.*;
    import java.io.*;
    class StreamGobbler extends Thread
        InputStream is;
        String type;
        OutputStream os;
        StreamGobbler(InputStream is, String type)
            this(is, type, null);
        StreamGobbler(InputStream is, String type, OutputStream redirect)
            this.is = is;
            this.type = type;
            this.os = redirect;
        public void run()
            try
                PrintWriter pw = null;
                if (os != null)
                    pw = new PrintWriter(os);
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null)
                    if (pw != null)
                        pw.println(line);
                    System.out.println(type + ">" + line);   
                if (pw != null)
                    pw.flush();
            } catch (IOException ioe)
                ioe.printStackTrace(); 
    public class MyMainClass
        public static void main(String args[]) throws InterruptedException
             //This is just a GUI as a test
            BaseWindow bw = new BaseWindow();
            bw.show();
            //Keep App Running for a while
            int count = 0;
            while (count < 200) {
                 Thread.sleep(20);
                 count++;
                 System.err.println(count);
            if (args.length != 1)
                System.out.println("USAGE java movies.MyMainClass \"<movie to play>\"");
                System.exit(1);
            try
                Runtime rt = Runtime.getRuntime();
                //String[] cmds = new String[] { "cmd", "/c", "C:\\Mplayer\\mplayer.exe", args[0]};
                //String[] cmds = new String[] { "C:\\Mplayer\\mplayer.exe", args[0]};
                //Process proc = rt.exec(cmds);
                Process proc = rt.exec("C:\\Mplayer\\mplayer.exe "+args[0]);
                // any error message?
                StreamGobbler errorGobbler = new
                    StreamGobbler(proc.getErrorStream(), "ERROR");           
                // any output?
                StreamGobbler outputGobbler = new
                    StreamGobbler(proc.getInputStream(), "OUTPUT");
                // kick them off
                errorGobbler.start();
                outputGobbler.start();
                //Keep App Running for a while
    //            int count = 0;
    //          while (count < 2000000) {
    //                 Thread.sleep(200);
    //                 count++;
    //                 System.err.println(count);
                // any error???
                int exitVal = proc.waitFor();
                System.out.println("ExitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    }I will restate myself:
    "I was not able to repeat the problem, except as described, as long as I took the hints mentioned in the article I posted into account and actually put them into action."
    Of course, as soon as I ignored those hints, I was able to reproduce the error described above quite easily in all the different tests I made... But I guess the OP implemented those fixes, right? He did say he read the article...
    Message was edited by:
    stevejluke

  • Standalone application without labview ?

    Hi
    I am trying to build an .exe file using application builder in LabVIEW 7.0. Is it possible to build an application without labview dependency ? In short, I want something like an .exe file which will run on systems without labview. I know visual basic has this facility. Please let me know.
    Thanks
    Sridhar.
    Kudos always welcome for helpful posts

    "Maximus00" <[email protected]> wrote in message news:[email protected]..
    > . . . I wanted an option where he can view my application without having
    to install anything on his PC. Looks like that is not possible ? Am i right
    ?<br><br>Sridhar.
    You are not right. It is possible. With LV 7.0 and previous versions (I
    don't know if this still works for 7.1), the executable will run correctly
    if lvrt.dll and the other support files are in the same directory. So you
    could, for example, put your executable on a thumb drive. Copy all files
    and folders in the C:\Program Files\National Instruments\shared\LabVIEW
    Run-Time\7.0 directory to the thumb drive as well. Then your supervisor
    could just run the program from the thumb drive without copying anything to
    his computer. Or, if you want the drive back, he could copy the entire
    contents to his drive without using an installer.
    But this begs the question, if your supervisor is evaluating executables you
    are creating in LabVIEW, what's the problem with installing LV Run-Time on
    his computer?

  • Help! Run AIR Applications without Adobe AIR.

    Hello, I wanted to ask that is there any way to run AIR applications without having Adobe AIR in the computer. It's really annoying when you have to give someone your application to use and then the person needs Adobe AIR to run it. Any suggestions?

    Where to start...
    AIR is a lot like Java in the sense that it requires a run-time engine to be installed. This engine has all "things" required to for the application to run. In a similar way, applications such as 3DMax or Word require that the operating system be present for them to run. Those programs are written using API calls that are present within the target operating system. Likewise, AIR and Java apps are written using API calls that are present within their run-time. To bring it full circle, AIR is an application written in C, that uses APIs for the target operating system. So, when you perform certain functions within AIR, it then knows how to execute needed operating system functions (as needed). AIR also provides a lot of higher level functionality and management that make your life as a programmer a lot simpler.
    Looking at iOS or Android, we have the same thing happening. Some developers are writing apps using Objective-C (iOS) or Java (Android) that are using APIs specific to those operating systems. This is the same as writing your app in C like 3DMax.

  • Cannot execute Web Application with JDeveloper

    Hi,
    I'm trying to execute an application I've been assigned to modify, usin JDeveloper. When I run the project with JDeveloper, it first compiles it, successfully, and then starts the embedded server, and starts the web browser trying to display the page, but actually the browser displays nothing. I've checked all logs in the application, and in JDeveloper install dir, and nothing displays, just as if it started properly. Could someone help me with this issue? What should I check in order to detect the root cause of this error? Below is the display of the embedded OC4J Server log:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    D:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    D:\jdevstudio10133\jdk\bin\javaw.exe -client -classpath D:\jdevstudio10133\j2ee\home\oc4j.jar;D:\jdevstudio10133\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    08/11/2008 05:07:10 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    08/11/2008 05:07:10 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 36031 ms.
    08/08/11 17:07:25 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    Target URL -- http://172.18.131.69:8988/GStarToolkit-ViewController-context-root/faces/login.jsp

    Hi,
    assuming they have configured security in the web.xml in the normal way, you need to ask for a protected page rather than the login page.
    The login pages are presented by the server rather than accessed directly.
    eg. Running .../faces/app/Home.jsp will take you to login.jsp if security is configured.
    Brenden

  • How to run java application without having java environment in  a machine

    can i run java application without having java environment(JVM) in a machine.I mean i dont have installed j2se or jdk in my machine.And i have an j2ee application running on another host which is built in swings.I want to access that application in my machine
    can any one help regarding my problem

    If you only need to access the program from one machine and you are running a Unix-like operating system (e.g., Linux, Solaris), you can use the remote display capabilities of X11. In this case you have to choose the host where the app will be displayed when you start it:
    $ DISPLAY=<hostname>:0.0
    $ export DISPLAY
    $ java ...
    If you want to be able to display it on both machines at the same time, or if you are using windows, then try something like VNC (http;//www.realvnc.com). Or if you are running windows and your version supports it, you can use windows remote desktop.

  • Is it possible to run glassfish without Jdk?

    hi, i need to run glassfish without jdk?
    Actually i want to deploy my project so i used sun application server 9.1 with mysql package but before it i need to install jdk so is any package with jdk+glassfish+ mysql?
    thanks

    This has nothing to do with JSF.

  • Executing an application with PersonalJava

    What is the exact command line syntax for executing an application with PersonalJava? My interpreter complains that it is: Unable to initialize threads: cannot find class java/lang/Thread.

    which version do you use, and how is it installed?
    On my device pjava 1.0 worked ok after installation, the 1.1 beta did not; it didn't even find the pjava.exe.
    Keep in mind that third parties have personal java versions with better jdk's. Maybe one of them is preinstalled on your device. I found out myself after a long search and lots of trying that my device had the CrEme VM installed, based on jdk 1.1.8.
    Luc

  • JRE installation without JDK

    Hi,
    I am using 9i AS on Solaris 8 as application server for J2EE application development. In production server, is it possible to install JRE alone so that I can run the deployment files without JDK.
    Thanks in advance,
    Karan.

    Hi,
    I don't know about that application server, but many application servers need a JDK in order to run. The JDK is used to compile jsp-pages etc.
    /Kaj

Maybe you are looking for

  • Event trapping when the active document changes

    Hi all, Apologies if this question has been asked / answered before. I don't get out much. Is there any way, in ExtendScript, to get an event when the user brings a different document to the front? Something similar to the "beforeOpen" event, but whi

  • Query on Data Conversion

    Hello All, We are trying to build a generic tool which could help the conversion process in data migration. For eg, If the material name in legacy starts with AB (AB6790), the same has to be referred in SAP as SQ6790. So its replacing initial few cha

  • Content Management / Repository Managers

    Hi, I must write IView for selecting Entry Points (Knowledge Management -> Content Management -> Repository Managers). Logical way need I first all Entripoints. Which class gives me the whole list of the Entry Points in the portal? Regards, Raissa

  • Spinning ball on MacBook

    When I lifted lip of my MacBook Pro to use and entered my password screen just shows a continuous spinning coloured ball. Help

  • Rotate Tool Tip

    Hi All, Can any one tell me how can I remove the tip displayed by Rotate Tool? The Rotate tool displays a tip while displaying graph. I do not want to show this tip to my users. Many thanks in advance. Shantanu