> hi
> I want to create an executable file for my application, can anyone help
> me thank you
If you want a native executable file (.exe for Windows, ELF format for
Linux, etc.), then you need to use a native compiler for Java. There
are two worth mentioning, GNU gcj -- which is free but shaky in several
ways, and Exclesior JET -- which costs money but is a very nice product.
Note that neither of these will produce a self-contained executable by
default. They still require shared libraries that are essentially
equivalent to the "virtual machine". I believe that gcj MAY be able to
link the virtual machine statically, but it would be an unusual thing to
do.
If you aren't tied to the idea of a platform-native executable file,
take a look at executable JARs. If you distribute the Sun JRE in
conjunction with an executable JAR file and a Windows shortcut or
UNIX/Mac shell script, you can let people easily run your application
without having to set up the CLASSPATH and such, but still avoid the
problems of native compilers.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
TechBookReport - 03 Jan 2006 16:35 GMT
>>hi
>>I want to create an executable file for my application, can anyone help
[quoted text clipped - 17 lines]
> without having to set up the CLASSPATH and such, but still avoid the
> problems of native compilers.
For Windows there's also the open source JSmooth project
(http://jsmooth.sourceforge.net/), which wrappers your app into an exe
file. Only played with it so far, but seems easy to use.

Signature
TechBookReport Java book reviews
http://www.techbookreport.com/JavaIndex.html
>I want to create an executable file for my application, can anyone help
see http://mindprod.com/jgloss/aot.html
http://mindprod.com/jgloss/nativecompiler.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
> hi
> I want to create an executable file for my application, can anyone help
> me
> thank you
This article covers all the options available for achieving your goal:
Convert Java to EXE - Why, When, When Not and How
http://www.excelsior-usa.com/articles/java-to-exe.html
LDV
Steve W. Jackson - 04 Jan 2006 17:38 GMT
> > hi
> > I want to create an executable file for my application, can anyone help
[quoted text clipped - 7 lines]
>
> LDV
Not *all* options are covered there. As expected, it leans toward its
own technology as the favored approach, even though it's only available
for two platforms.

Signature
Steve W. Jackson
Montgomery, Alabama
Chris Uppal - 04 Jan 2006 18:04 GMT
> > Convert Java to EXE - Why, When, When Not and How
> > http://www.excelsior-usa.com/articles/java-to-exe.html
[quoted text clipped - 3 lines]
> own technology as the favored approach, even though it's only available
> for two platforms.
What other options are there ? I, personally, don't know of anything he's
missed out, and I would call it a good, well-balanced, article.
-- chris