• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Executable Builder

 
Andrew Ceronoski
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Henry Wong
author
Marshal
Pie
Posts: 20889
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Andrew Ceronoski
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic