• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Windows Executable

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I have made a Java project. Now i want to make a windows executable file of it.
What is the best way to do it?
 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, why do you want to build a windows executable? Isn't your program targeted for multiple platforms?
Anyway, I found that JSmooth is doing that well. For special purpose, I even created my own executable using Visual Basic 6.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paras Ahuja wrote:Hi everyone,
I have made a Java project. Now i want to make a windows executable file of it.
What is the best way to do it?


There are several 3rd party product that will do it; and I believe you can also make an executable jar (which is pretty much the same thing).

My question is: why are you worried? If you can run your app with the standard commands, just bang 'em in a .BAT.

Winston
 
Paras Ahuja
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to make it windows executable because it is going to be used on system's without jre.
So if you could just help me...
 
Paras Ahuja
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you suggest me some 3rd party products?
 
Nam Ha Minh
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paras Ahuja wrote:i want to make it windows executable because it is going to be used on system's without jre.


Unless you are building a native Windows app, all Java programs require JRE to run. In your case, a Windows executable is just a wrapper, it doesn't replace JRE.

For 3rd solution, I suggested JSmooth as above.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, maybe you can use Exe4j, is very easy to use !

 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless all of the referenced classes are also compiled into native code (like gcj does), you indeed need a JRE. I believe JSmooth can help install one automatically when none is detected.
 
reply
    Bookmark Topic Watch Topic
  • New Topic