• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

EXE in Java?

 
Greenhorn
Posts: 21
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
author
Posts: 23959
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 15743
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys! i found this by googling.. Hehe!

http://www.excelsior-usa.com/articles/java-to-exe.html
 
Marshal
Posts: 80874
506
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Campbell Ritchie

Sorry Sir..

Anyway, nice link...

Thank you..
 
reply
    Bookmark Topic Watch Topic
  • New Topic