This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why jre after exe produced" Watch "why jre after exe produced" New topic

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

Joined: Sep 28, 2004
Posts: 20032

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.


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.
Have you checked out Aspose?
subject: why jre after exe produced
It's not a secret anymore!