aspose file tools*
The moose likes Java in General and the fly likes Windows Executable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Windows Executable " Watch "Windows Executable " New topic
Author

Windows Executable

Paras Ahuja
Ranch Hand

Joined: May 22, 2012
Posts: 62
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?
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

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.


PM Me If You Want to get Urgent Help on Java Programming
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8016
    
  22

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


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Paras Ahuja
Ranch Hand

Joined: May 22, 2012
Posts: 62
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

Joined: May 22, 2012
Posts: 62
can you suggest me some 3rd party products?
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

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.
Carlos Daniel Larico Flores
Greenhorn

Joined: May 30, 2012
Posts: 1
Hi, maybe you can use Exe4j, is very easy to use !

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Windows Executable