How can one create a .exe file in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can one create a .exe file in Java?

13th Aug 2018, 10:41 AM
Hassan Gachoka
Hassan Gachoka - avatar
3 Answers
+ 2
When you compile a java program, the compiler return an executable for JVM (Java Virtual Machine). This is not an .exe file. If you want distribuite your program to other people, they need JRE installed in their Machines. To produce a real autonomous.exe files, you need external programs that convert the Java bytecode to an machine code. Java is not a "literally" compiled language like C++(for example). Java instead has a virtual machine to run Java compiled code. This fact allow the portability, but reduces the speed of programs.There are several free programs for this. But real professional installer and converter are not free (I suppose).
13th Aug 2018, 12:13 PM
RoboCybernetic
RoboCybernetic - avatar
0
I too have a doubt in this
13th Aug 2018, 11:34 AM
Nitesh Kumar Pandey
Nitesh Kumar Pandey - avatar
0
I tried launch4j bt it disappointed me.
15th Aug 2018, 9:50 PM
Hassan Gachoka
Hassan Gachoka - avatar