Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running java without JRE ?

 
Sankar Subbiramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If i convert my class file to an exe file, then can i run it without installing JRE?
Thanks
Sankar
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess not, you would need some runtime environment to run class file. However, on windows it is possible for users to run class files using a batch file that uses Microsofts Virtual Machine(jview.exe).Microsoft's VM is installed with IE 5.x.
 
Greg Brouelette
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the search box at the bottom of this page select the saloon.javaranch.com radio button and then search for
.exe
You'll find hundreds of post answering this question.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course you can just "bundle" the jre with your application without really "installing" it and have your users invoke a bat file that sets the path and classpath on the fly to look at your applications jre even if they do not have java "really" installed.
The jre is not all that big.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic