• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 23909
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
 
Saloon Keeper
Posts: 13398
298
  • 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: 74381
334
  • 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..
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic