Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

.exe  RSS feed

 
Erik Cederqvist
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Who to do if i want my java program that i have made to be a exe file??, so other users not have to install the javaplatforme???

thnaks for helping
erik
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Erik,

As far as I know, it's impossible to compile a Java program
to an exe file, but what you could do is to make a jar file
you can find more information about making executable jar files
here:

http://www.cs.princeton.edu/introcs/85application/jar/jar.html

/Svend Rost
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also take a look at these threads found via JavaRanch's Search page:

http://www.coderanch.com/t/392004/java/java/Making-class-executable
http://www.coderanch.com/t/390296/java/java/create-exe-executable-program

Also take a look at this thread from the Sun Devloper Forun:

http://forum.java.sun.com/thread.jsp?forum=22&thread=141944
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Svend Rost:
Hi Erik,

As far as I know, it's impossible to compile a Java program
to an exe file, but what you could do is to make a jar file
you can find more information about making executable jar files
here:

http://www.cs.princeton.edu/introcs/85application/jar/jar.html

/Svend Rost


This actually is possible, but defeats the whole platform-independence of Java. Is it such an inconvenience to give your users directions to install the JRE?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!