Win a copy of Microservices Testing (Live Project) this week in the Spring 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Generate an exe file?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to convert java programs to windows .exe files using eclipse?
How are the applications such as Azureus, limewire etc packaged into an exe installer?
 
author & internet detective
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a number of programs that compile Java into a Windows exe.
 
Marshal
Posts: 76067
362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure you either can or want to create .exe files.
What you do is to create an executable .jar file.
If I remember correctly, this is how you do it in Eclipse:
  • Right-click the name of the project in the left pane.
  • Click export
  • In the new window click the arrowhead near "Java" so expand the list.
  • Click ".JAR file"
  • Click "Next"
  • Enter a name for the .jar file
  • Click "next" twice.
  • Put the name of the class with the main method in the box.
  • Click finish.
  • Find the .jar file.
  • Copy a shortcut to it onto the Windows desktop.
  • If your file associations are set up properly, then you can run the application by double-clicking he desktop icon.
  • If you need to add other files to your classpath, search through this forum and find my earlier posts about adding to the classpath.
     
    Marshal
    Posts: 27276
    87
    Eclipse IDE Firefox Browser MySQL Database
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Also, just because those applications use a Windows installer to get themselves loaded onto Windows machines, it doesn't follow that the result of the installation is a Windows exe file. If you want to get your application installed on other people's Windows machines, I definitely recommend using a Windows installer to do that. But I don't recommend using those applications that convert your application into a standalone exe file. They usually aren't necessary and often people seize upon them because they don't realize that they can use a standard Windows installer instead.
     
    reply
      Bookmark Topic Watch Topic
    • New Topic