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 / Tools / August 2006

Tip: Looking for answers? Try searching our database.

Executables

Thread view: 
Philbo.B.Baggins@gmail.com - 03 Aug 2006 12:41 GMT
What is the method (Other than purchsing a tool for this purpose) of
putting a java application into an executable file... And not just
package it into a JAR?
Jaap - 06 Aug 2006 20:59 GMT
Philbo.B.Baggins@gmail.com schreef:
> What is the method (Other than purchsing a tool for this purpose) of
> putting a java application into an executable file... And not just
> package it into a JAR?

hm, interesting question, why would you want to do this?

Java requires the VM to execute a program, and java is platform independent.

So when you are referring  to an executable I think you mean a windows
executable?

when this is indeed what you want to do you are required to link the VM
in the executable as well. This is very difficult to do.

other option is to use a java compiler, when you are indeed sure you
want to loose platform independence. And yes, then you would need to
purchase a java compiler which does just that.
Jaap - 06 Aug 2006 21:00 GMT
Philbo.B.Baggins@gmail.com schreef:
> What is the method (Other than purchsing a tool for this purpose) of
> putting a java application into an executable file... And not just
> package it into a JAR?

hm, interesting question, why would you want to do this?

Java requires the VM to execute a program, and java is platform independent.

So when you are referring  to an executable I think you mean a windows
executable?

when this is indeed what you want to do you are required to link the VM
in the executable as well. This is very difficult to do.

other option is to use a java compiler, when you are indeed sure you
want to loose platform independence. And yes, then you would need to
purchase a java compiler which does just that.
Dieter Lamberty - 07 Aug 2006 09:09 GMT
Philbo.B.Baggins@gmail.com schrieb:
> What is the method (Other than purchsing a tool for this purpose) of
> putting a java application into an executable file... And not just
> package it into a JAR?

Hi

I think the gcc system can do that (http://gcc.gnu.org/java/). I've
tried it with an earlier version and it wasn't really fun (I didn't get
much more than a "HelloWorld" to run) but maybe it's better now.

But if you really want to use it I would tend to purchase a tool.

Dieter
ldv@mail.com - 08 Aug 2006 06:58 GMT
> What is the method (Other than purchsing a tool for this purpose) of
> putting a java application into an executable file... And not just
> package it into a JAR?

This article has numerous pointers to respective tools (commercial and
free):

Convert Java to EXE: Why, When, When Not and How
http://www.excelsior-usa.com/articles/java-to-exe.html

LDV


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.