Running a java exe without JRE

i have created an exe for a java application by using a C program...The c program invokes the DOS shell and runs the JAVA application...
now how do i make this exe executable on a windows XP machine without JDK being installed...
The second issue is that if i wrap my exe with the required JRE components the size becomes too large...how do i ship my java application as a single EXE runnable on all WINDOWS machines!!!!!!!!!!!

Including the JRE with your app, if you zip it, will add about 14MB to your distribution. It's annoying but in the days of broadband, it's not so much of a problem. You could also check this:
http://www.excelsior-usa.com/jet.html

Similar Messages

  • Force jar to run through java.exe not javaw.exe

    Hi,I am programming using eclipse 3.5.1 when i try to export my project as a single jar file it always runs through javaw.exe
    even if its a console app the problem is that sometimes i want it to run through java.exe without having to write the annoying batch file (java -jar "appname.jar") which will only probably run under windows, is there a way around this that would force the jar file to run automatically in console mode?

    803038 wrote:
    Hi,I am programming using eclipse 3.5.1 when i try to export my project as a single jar file it always runs through javaw.exe
    even if its a console app the problem is that sometimes i want it to run through java.exe without having to write the annoying batch file (java -jar "appname.jar") which will only probably run under windows, is there a way around this that would force the jar file to run automatically in console mode?Windows, not java, has file associations which specify what happens to certain files when someone double clicks on it.
    You have one extension which you want to run two different ways. That of course isn't possible.
    You could write a wrapper that spawns a console via Runtime.exec. Then your console apps would be wrapped in that.

  • Is it possible to run the java program without main?

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    Ramya

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    RamyaWhy do you ask? It sounds like an odd question. Your program can be an applet and it doesn't need a main method in that case.
    Kaj

  • Running a Java program without the JRE...

    Hi there,
    I was wondering whether it is possible to run my java applications on a system that does not have the JRE installed?
    Is there a way to compile the java bytecode into an executable - let's say for windows.
    Thank you

    See:
    http://www.bearcave.com/software/java/comp_java.html
    Yair.

  • 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

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • How to make jar files run using java.exe and not javaw.exe

    Hi ,
    I am developing a project in which there is an GUI which inturn will call a console . I have made it into an jar file now.
    Here comes the problem. When i run the jar files , i don't get a console. While going through this forum, i came to know that jar runs using javaw.exe and this stops it from bring the console up.
    Please suggest me a way of running the jar file through java.exe or any other method by which i can get an new console poping up.
    PS : i cannot start the application itself in a system console , because the Console mode is an added feature and it is not to be displayed every time but only when the user intends to.

    Thanks for the reply pbrockway2. But i think, i was not able to convey my problem properly.
    I am supposed to start my application in a GUI mode ( No console are should be present at this point of time). Within the GUI , i have a option for working in the console ( i.e if console is choosen, then i start giving my output and take inputs from the console. I am trying to do this by just calling the "System.out "and "System.in" methods. )
    Here is the problem. As i have started it through " jar " it would not have a associated console with it.
    PS: i cannot have launching .bat file because that would result in my application having a console displayed at the very start of the application. I want the console to be displayed only when the user wants to start in console mode.
    Please suggest me some ways of doing this. Can i create a console from my java program and then exit it.

  • Java.exe in \jdk1.4.0\bin VS. java.exe in \jre\bin ?

    Hi,
    What is different java tools in bin directory from
    java tools in jre\bin?
    Why do we need these duplication?
    and what kinds of role jre directory do?
    If anyone give any more comments about jdk directory structure
    with the reason, it will be big help.
    Thank you..

    i guess you have installed the java development kit ( JDK ) . I you read the documentation JDK comes with development tools + java runtime environment ( JRE ) . if you have a look at this picture http://java.sun.com/j2se/1.4.1/images/j2se9.2_arch3.1.jpg .It will make it more clear . so what you see in jre folder is for the runtime execution . once you have compiled the java file you you only need the jre content to run it . where as other flders contain development tools , documentation etc .
    hth

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • Windows refuses to run the java.exe in my path.

    Hi all -
    I'm having some problems managing Java in Windows. All my experience with Java is primarily from a Unix environment, so I'm really having a tough time solving this issue.
    Windows is obsessed with using java from c:\program files\Java\jre1.5.0. That directory isn't in my path anywhere, and I don't have the problem from within Eclipse because you can specify your environment, but if I type 'java' from a command line, it invokes a version from that directory. I only noticed when trying to debug an RMI problem related to this and I started my project with "java -server" and it gave me the error:
    "Error: no `server' JVM at `C:\Program Files\Java\jre1.5.0\bin\server\jvm.dll'."
    Of course if I type in the full path to the java.exe I want to use, its fine.
    I've tried just removing the directory in the hopes that it would then take a look at my path variable and find the correct version, but then I just get the error:
    "Error: could not open `C:\Program Files\Java\jre1.5.0\lib\i386\jvm.cfg'"
    It's driving me mad! What do I have to do to tell Windows to give up on this directory? I've looked at the registry and it is in there about 30 times. That seems a little crazy to me, but I'm just not a Windows guy.
    Thanks
    Jason

    To allow "naked" java commands, Sun places a copy of java.exe and javaw.exe in a Windows directory that's on the execution path. In 2000/XP they're in WINDOWS\system32 (along with a copy of the Web Start program javaws.exe.)
    Either remove them, or place the directory that contains the wanted java.exe in the path before the WINDOWS\system32 entry - the first copy found will be used.

  • How to run a Java program without the command line.

    Is there anyway to create a Java program that runs like most programs do in Windows ,by double clicking on their icons?
    Thanks,
    Vance

    http://www.ej-technologies.com/products/exe4j/overview.html
    Looks kinda cool. Most java-2-exe programs are usually way too expensive and wont work with GUIs and require other dlls/libraries...

  • Not able to run the Java Program from jre for the ARM processor

    Hi ,
    I am try to run the jre1.4.2 for the arm core (linux 2.6kernel) which i downloaded from the sun site.
    I am created the class file from the J2SE1.4 development kit. I created the simple HelloWorld Program and complied with J2Se then i copied that class file into my IMX board which has ARM core.
    When i run the commnd java HelloWorld i am getting this error
    dl failure on line 765Error: failed /dev/shm/jvm/j2re1.4.2/lib/arm/client/libjve
    Please give me some suggestion to solve this porblem
    Thanks in Advance
    Narendra

    I JRE i have download from the sun site . But when i am trying to run the simple helloWorld program in that it is giving the below error.
    error:
    dl failure on line 765Error: failed /dev/shm/jvm/j2re1.4.2/lib/arm/client/libjvm.so because /dev/shm/jvm/j2re1.4.2/lib/arm/client/libjvm.so: symbol __divdf3, version GCC_3.0 not defined in file libgcc_s.so.1 with link time reference.
    Can anybody help me in this how to solve this problem . I also searched in the forum but did not get any answer on that problem
    Thanks in advance.
    Narendra

  • Running a java application without a main method

    class MainMethodNot
        static
            System.out.println("This java program have run without the run method");
            System.exit(0);
    }The reason this works is that static initialization blocks get executed as soon as the class is loaded, even before the main method is called. During run time JVM will search for the main method after exiting from this block. If it does not find the main method, it throws an exception. To avoid the exception System.exit(0); statement is used which terminates the program at the end of the static block itself.
    got it from http://www.java-tips.org/

    This has been published many times on this forum. What is your question?

  • Run jsx as exe without dialog boxes

    Hi All,
    #target "indesign-7.0"
    alert("testing");
    I am using this code to execute the javascript in InDesign CS5. If I double click this javascript file it actually executes and giving alert message, but before it asks "Yes" or "No" dialog box. I dont want to display this dialog box. How can I do?
    Thanks in Advance,
    Mahesh

    Hi,
    I am finding one more problem. I put my script in "Adobe Scripts". It run successfully. But the Progress bar not closing. I run 4 times. The InDesign shows 4 progress bar.
    What can I do, Plz help
    Thanks In Advance,
    Mahesh

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

Maybe you are looking for

  • Why is my ipod touch showing that I dont have the software?

    Okay...well I know the question is kind of vague but here it is...My iPod Touch was working fine until I tried to update the software...now it's showing the screen when you first turn your iPod Touch on when you first get it and turn it on (if that m

  • Read-only filesystem after reinstallation,chmod failure

    I decided to switch to a pure systemd init yesterday. Despite strictly followed wiki my system failed to init with switch to systemd emergency mode with no way to cure the problem. So I followed with reinstallation of my system (32bit on 64bit HW as

  • Fraudulent USPS label created

    Hi, There are 4 fraudulent activities in my account and I couldn't dispute them in your system for below reason. Also, I couldn't find Seller Tools topic in Help Center on your website. Is there a way to submit such problems or could someone from Pay

  • Web service connection

    Hello! I am developing a JAX-WS web service using EJB 3.0 and Glassfish application server which receives some information from the clients, performs some buisness methods and saves information to a database. The service can write information to data

  • RenderPDFForm is generating big pdf files

    hi, In a workbench process Im generating a xdp file that I convert to a PDF file using the renderPDFForm component. This is working, however, the generated PDF document is not being compressed. In the renderPDFForm properties I can´t find any propert