• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Conversion of Java to a *.Exe

Hi

Just to ask you expert, if i got a java program and i always need t JBuilder to run it before i can use, is there any program tat can convert the java to a exe file where by i can double click and it will run. No need a Jbuilder to run it

James2
0
xxxmen
Asked:
xxxmen
  • 4
  • 3
  • 2
  • +2
1 Solution
 
girionisCommented:
You do not need to make it an .exe in order to run it with a double click, besides making it an exe breaks the concept of run-anywhere java.

YOu can bundle it in a jar file using a manifest thgat indicates the main class and it will run with a double click:

http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html

0
 
ZylochCommented:
Hi

The whole point of Java is so it's platform independant. If you must, this site has a list of Java compilers (just click the top two links, one for Native Compilers and the other for Bytecode compilers. There are some more info at the bottom links).

http://www.geocities.com/marcoschmidt.geo/jcomp.html#native

However, it may be a lot better to make a JAR file:

http://java.sun.com/docs/books/tutorial/jar/basics/

Regards,
Zyloch
0
 
ZylochCommented:
Ahh, sorry stale window

Regards
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
girionisCommented:
If you still want to go with the .exe solution here are some URLs:

http://gcc.gnu.org/java/index.html
http://www.xlsoft.com/en/products/jet/jetpro.html
0
 
girionisCommented:
> Ahh, sorry stale window

It's ok, it happens all the time :)

0
 
sciuriwareCommented:
JAVA -> .exe .......

don't expect a huge gain in speed!

the present JRE (java.exe or javaw.exe and friends) is so smart that .exe is almost useless.

;JOOP!
0
 
TimYatesCommented:
> that .exe is almost useless.

Apart from obfuscation... ;-)
0
 
sciuriwareCommented:
Just my opinion:  those few who are interested in your code are those who can overcome any barriers.

Like: pro-thieves are not withheld by customer-level locks.

;JOOP!
0
 
TimYatesCommented:
"those few who are (really) interested in your code (and are skilled at java and/or assembler) are those who can overcome any barriers."

;-)
0
 
xxxmenAuthor Commented:
hmmm i got one user do not wan know how to use Jbuilder so if i create a application for him. He will have no knowledge of how to use it. Unless is a easy file where he double click it and able to use it easily
0
 
girionisCommented:
Your best bet is to use a jar with the appropriate manifest for the main class. Then double click on the jar file and you are set. Take a look at the links posted about jar and manifest file.
0
 
xxxmenAuthor Commented:
sorry
hmmmm most of them give the solution
but i yet to try it out
so i wan to keep this thread open
0
 
sciuriwareCommented:
Yes, rate him A and please punish xxxmen.
;JOOP!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now