| Author |
Eclipse Executable Builder
|
Andrew Ceronoski
Greenhorn
Joined: Apr 21, 2009
Posts: 16
|
|
Hello:
Im wondering if there are any add ins or free programs that allow you to build a standalone executable for a java program in eclipse.
I do not want to make an executable jar, but a .exe file.
Thanks for your help.
|
 |
Oleg Tikhonov
Ranch Hand
Joined: Aug 02, 2008
Posts: 55
|
|
Hello, i don't know Eclipse's plug in, but you can wrap your jar by C/C++ code.
For instance:
Now, compile it, and as output you get .exe file.
Oleg.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
If you're going to use C / C++ to start your JVM, you might as well go all the way and use JNI to start the JVM.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16815
|
|
Andrew Ceroooo wrote:Hello:
Im wondering if there are any add ins or free programs that allow you to build a standalone executable for a java program in eclipse.
I do not want to make an executable jar, but a .exe file.
Thanks for your help.
Another option. Google for "Java AOT" for native compilers. However, it must be noted that these compilers won't be able to compile some Java code -- particulaly if you use reflection.
As for the eclipse plug-in, what is it that you are looking for? If you just want to compile the code, then it is probably best to call the compiler from an ANT script and have eclipse call the script.
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Andrew Ceronoski
Greenhorn
Joined: Apr 21, 2009
Posts: 16
|
|
I am trying to compile the code into a .exe file. Same as Jbuilder...just that im using eclipse.
I found this in eclipse...http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm
Not sure if its going to help me at all though... Any help is most appreciated!
|
 |
 |
|
|
subject: Eclipse Executable Builder
|
|
|