Results 1 to 11 of 11
- 10-01-2008, 09:07 AM #1
Member
- Join Date
- Sep 2008
- Location
- Kolkata, India
- Posts
- 20
- Rep Power
- 0
How to run jar file without installing jre
i have a stand-alone JAR file. I want it to distribute it on CD.Now JAR file requires JRE to work.How do i create the CD without installing JRE on the client PC ? Is there any way to emulate the Java Runtime Environment on the CD so that no installation of JRE is required on the client PC and the JAR file can directly run from the CD .
Thanks in advance.Last edited by Md Saim; 10-01-2008 at 09:14 AM.
- 10-01-2008, 12:11 PM #2
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
Can't be done
- 10-01-2008, 03:19 PM #3
not true....i have done it many times...u need a software JAR2EXE converter. It will make your jar file a native one and thn u can run it without having JDK installed.Can't be done
Other normal exe converters will just make an exe to call the jar. so chk before u download.
EXAMPLE
i made all these in java and converted them in exe...they run fine!Last edited by GhosT; 10-01-2008 at 03:21 PM.
- 10-01-2008, 04:55 PM #4
Ghost-
Look at the size of the folders containing the jre. Compare that to the size of the .exe that is created. Do you think that all that code in the jre can be squeezed into the .exe?
Does the jar2exe conversion program convert java code to MS code so that it uses MS's dll files vs the Sun class files?
Are you able to execute the .exe on a system that does NOT contain a jre?
Where did you get your jar2exe program? One that does NOT make an exe to call the jar.
- 10-01-2008, 05:45 PM #5
my jar file had a size of 100KB and when i made it exe it required me to locate all the library jars and the total size has increased to 3+ MB...i sent it to my friends computer...and he said it was running...he dont do java...so i guess...its possible...
but i didnt check it in my pc...because i am afraid if i uninstall JDK some previous problems i had regarding installation will arise again...
the program builder is regexlab.
Jar2Exe - Java2Exe - JarToExe Convert Wizard Free Edition Download
- 10-01-2008, 05:50 PM #6
um sorry...i guess it needs jvm to run...i had this confusion...sorry...it wont run without jre/jdk installed. it starts java virtual machine using JNI interface.
still making exe makes it easy to distribute through installers.
- 10-01-2008, 07:24 PM #7
I think you could test it on your PC without doing an uninstall by finding all the java.exe files and renaming them to something like java.exe.XXX so that the .exe can't find a java.exe and see what happened.
- 10-01-2008, 08:11 PM #8
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
Now run that once-portable Java application on a Unix machine.....
The question isn't really "how do I do this?" it's "Why bother doing this?"
- 10-02-2008, 05:11 AM #9
EID MUBARAK to u people!
- 08-29-2011, 09:23 PM #10
Banned
- Join Date
- Feb 2011
- Posts
- 65
- Rep Power
- 0
Hello guys i think this is helpful i already try this and it work..
read
this Bundle Java (the JRE) and Launch a Java App with 7zip SFX! ... (Convert Java Apps to an Executable, sort of) - Mark S. Kolich
then try it uninstall your jdk and jre in your own computer it works because i already tested it.
- 08-29-2011, 10:12 PM #11
Similar Threads
-
Need Help installing java - can you help me?
By Menre in forum New To JavaReplies: 4Last Post: 02-22-2010, 12:33 PM -
Installing j2s in eclipse3.4
By ravjot28 in forum EclipseReplies: 0Last Post: 07-07-2008, 06:51 PM -
installing j2s
By ravjot28 in forum EclipseReplies: 9Last Post: 06-27-2008, 11:10 AM -
Installing JMF
By vinnieza in forum EclipseReplies: 0Last Post: 05-04-2008, 07:11 PM -
Installing Java
By Adv3nt in forum New To JavaReplies: 3Last Post: 12-12-2007, 11:29 PM


LinkBack URL
About LinkBacks

Bookmarks