Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

can java make exe files?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just know the java application is *.class files,but how to make *.exe files with java?
thanks for your help
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question is asked on a regular basis. You should use the Search utility to find out what has been said about it. For example, you will find a threads like this, this, and this.
HTH
Layne
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Icon Liu!
There are programs that you can download to create an exe from a Java application. This approach at creating an executable application would likely have two big flaws - it would only be executable on Windows, and the size of the exe might be a lot bigger than you were expecting as some Java -> exe programs will bundle the JRE (about 5MB) with the application.
I'd suggest that you consider Creating an Executable JAR File. Such an application would be only as big as you made it, and would run (by simply double-clicking on the file) on any machine with a Java 2 Runtime Environment properly installed.
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic