Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

executable file

Thread view: 
O.Benhalima@aui.ma - 03 Jan 2006 16:06 GMT
hi
I want to create an executable file for my application, can anyone help
me
thank you
Chris Smith - 03 Jan 2006 16:27 GMT
> 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

Roedy Green - 03 Jan 2006 17:03 GMT
>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.

ldv@mail.com - 04 Jan 2006 13:05 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.