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