File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes why jre after exe produced Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why jre after exe produced" Watch "why jre after exe produced" New topic
Author

why jre after exe produced

joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
i have developed one console application by using jdk 1.5 in one machine 'A' of windows xp as O.S.

after that i produced the jar file. then with the help of a tool

called JExe Creator i produced a exe file . All the above process was done

in machine A. After that i copied that exe file and pasted in another

machine 'B' of windows xp as O.S . That machine 'B' does not contain jre 1.5. i was unable to run the EXE file. after installing the jre 1.5 only, That Exe file runned.

my question is why we need JRE after EXE file is produced.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19059
    
  40

then with the help of a tool called JExe Creator i produced a exe file .


Maybe you should look into JExe Creator to see exactly what is done by the tool. Maybe this tool doesn't generate a "pure" executable, and needs a JRE to run.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ove Lindström
Ranch Hand

Joined: Mar 10, 2008
Posts: 326

JExeCreator is NOT a native compiler, it is a native LAUNCHER. It wraps the jars into the executable and also creates a launch-command but it does NOT compile your Java classes to native.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why jre after exe produced