• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EXE in Java?

 
Death Arte
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day!

I'm going to create a java application, but first how it will be an executable?
I mean one click program then execute..
 
Henry Wong
author
Marshal
Pie
Posts: 21021
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

By EXE, I am assuming that you are using windows... Windows support "one-click" execution of executable jar files. Just package your classes into a jar file, create a manifest to make it executable, and windows will run it with "one click".

If you really need it to be an EXE file, then you can compile it to an EXE. Just google for "AOT java compiler" for some compilers.

Henry
 
Stephan van Hulst
Bartender
Pie
Posts: 5594
55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I really enjoy Install4J and Exe4J. They are not free, but they are amazing tools.
 
Death Arte
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
By EXE, I am assuming that you are using windows... Windows support "one-click" execution of executable jar files. Just package your classes into a jar file, create a manifest to make it executable, and windows will run it with "one click".

If you really need it to be an EXE file, then you can compile it to an EXE. Just google for "AOT java compiler" for some compilers.

Henry


id like to build an application that would run in different platforms without changing the code. so i think Jar file is one of the best options.
correct me if im wrong, Jar file can't be executed if there's no JRE installed in terminal?
 
Death Arte
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:Personally I really enjoy Install4J and Exe4J. They are not free, but they are amazing tools.


Thanks for the advice, but for now, i do really hate using not free softwares..
for the reaso of Financial probs.. Hehe!
 
Death Arte
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys! i found this by googling.. Hehe!

http://www.excelsior-usa.com/articles/java-to-exe.html
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are better off using an executable .jar.

This is too difficult a question for "beginning", so I shall move it.
 
Death Arte
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Campbell Ritchie

Sorry Sir..

Anyway, nice link...

Thank you..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic