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.

Similar Messages

  • Running java application without installing JRE

    We try to run Java application without installing JRE, by copying java.exe (and other JRE files) together with our jar file. This does not work.
    Can it be solved?

    Can you elaborate on the steps to create a java
    application without installing JRE.
    Regards,
    padmaPadma,
    The solution is to deploy my JAR together with JRE files, without running standard JRE installation. This makes possible to simply ensure that my JAR will run with THIS SPECIFIC JRE. This is important from QA point of view. Also, installation of my application does not change configuration of JVMs on the computer.
    The solved problem:
    Standard JRE installation may change the default JRE for many Java applets and application on computer. Changing version JRE may lead to some programs misbehaviour (JRE backward compatibility does not always work and different Java versions not always live together well). Thus, some IT departments are very nervous about JRE version change.
    Hope, this explains my problem and the solution.

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

  • Run application without mysql which was once developed using mysql

    I developed a application that uses mysql database to show the contents of the database in a JTable. Now i want to send the application to others who want to run the application without the database .i.e the contents of the database must also be copied to the runnable jar file I make.

    java_swinger wrote:
    I developed a application that uses mysql database to show the contents of the database in a JTable. Now i want to send the application to others who want to run the application without the database .i.e the contents of the database must also be copied to the runnable jar file I make.Create a class with the table data, e.g.:
    public interface MyTableData1
      public static final Object[][] DATA = {
        {" these", "are", "my data"}  };
      public static final String[] COLHEADS = {
        " Col. A", " Col. B", " Col. C"
    }

  • 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

  • Run applet without jdk?

    I have made an applet I run with appletviewer.
    Now I want to put the whole program on a CD (or a disk) and run the program on another pc, where I don't have the jdk. Is that possible?
    Or do I have to download the jdk (or jre) on that computer as well?
    I've heard somewhere that java plugins should be sufficient, is that true?

    The "Java plugin" is the JRE.
    If you do not use special features of the JRE (such as swing components) then
    the Microsoft VM might be able to display the applet.
    Otherwise: Install the JRE.

  • Run applets without JRE

    Hello to all developers,
    I know that to run applets in IE we should have the JRE installed on our machines. But is there any way that we can run applets without the JRE being installed on our machines. I have also heard of something called as the Microsoft JVM. How can we use it to run the java applets.
    Thanking in advance.

    The Microsoft JVM is extremely outdated and not recommended at all. You can't really run a Java applet without a JVM, and I'm not sure if any but the one Sun makes comes with a browser plugin.

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

  • How to run application on comp. with only jre installed?

    Hi guys! I've written an application and somebody wants to use it. I have an applet too but it does not have full functionality and slower.
    I am running applications from my desktop using shortcut on javaw.exe file located in jdk/bin folder. No problem with it.
    But if person does not want to instsall jdk? I know that jre has javaw.exe in its bin but it does not work that way.
    My question is: how to run application for domestic use without all this web start hassle and with only jre installed? Is it possible? If yes, how to do this?
    Regards

    Download the JRE redistributable from Sun. It is self installing and will allow the user to run your app using a regular shortcut to javaw.exe.

  • 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

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

  • 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

  • Installing JRE when running a jar on a machine without  the JRE

    Please I want to know how to add the JRE to my jar package so that in case the computer to run the application on has no JRE installed. The jar should prompt for an install which is included in the jar. And also not install when JRE is already running on the machine.

    You can visit http://www.zerog.com/downloads_01.shtml. Unfortunatly they are trial versions of the software and licensed versions will cost money. When distributing applications it is easiest and cheapest to include a user guide, or at least a read-me, that states the user must have JRE to run your application and include where JRE can be acquired. The easiest method of packaging a Java application without using programs such as InstallAnywhere, is to include the application in a zip 'ready-to-run'. For similar programs take a look at Eclipse (www.eclipse.org).

  • How to run java programs on machines without JDK

    I want to make an installer for my java program that would work on machines even without JDK or Java runtime. How should I go?

    Here's another point.
    There is no particular need to "install" anything to run java. You can simply copy the jre to a directory of your choice, and from that directory invioke the JVM as you need it.

Maybe you are looking for

  • Deploy a Corba POA in WLS 9.1 - how ?

    Hi, http://edocs.bea.com/wls/docs92/rmi/appa.html states that the Portable Object Adapter (POA) is supported. How do you deploy and start a servant in WLS 9.2 ? As startup-class? If yes, is the POA integrated in the WLS thread management? Is the IDL

  • Fatal IO error 11 while configuring X

    i have installed xorg hal xterm xfce4 packages etc. but problems come when i run xterm comes xterm xt-error: can't open display: %s xterm: DISPLAY is not set and when i run startx i can turn to the ugly simple X windows, but when i ctrl+alt+bs and ge

  • Trial version: BI in SAP NetWeaver 2004s

    Hello All; I had been playing with the SAP NetWeaver 7.0 ABAP Trial Version which has 1.  SAP Evaluation NW 7.0 (2004s) SP12 2.  SAP NetWeaver Application Server: ABAP Is there a trial version for me to download and play with to learn BI in SAP NetWe

  • List size in bytes

    Is it possible via the object model or web servecies to get the size of a list in bytes much like storman does?  The only issue with storman is that it will only display 100 lists and I have a site collection with thousands.  Any help would be greatl

  • Canon EOS 50D

    Just announced by Canon, the EOS50D. Relevance to this forum? US pricing in dollars is the same as price in euros, so yet another rip-off for loyal EU customers!