This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why jre after exe produced

 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21510
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic