![]() |
Converting.java to .exe ?
Question
Is there a way to Convert a .java file to an exe file i use NetBean 6 and i have a source folder in that src folder a main java project file .java (1) 1 file individual.java files (2) files now i want to convert this source folder with all the.java files to one .exe file to run under native Windows OS i have softwares such as JSmooth EXE4J i dont know how to do this in either 1 if there's a way i can convert that whole folder to an exe file would be very helpful for the completion of my software Solutions are welcome:confused: thanks |
Haven't tried it myself but this seems pretty straight forward:
Quote:
|
Most windows come with the JRE, if this is the case you shouldn't be creating an exe, but instead should be creating a jar file. JAR files are like exe's, but for Java only!
http://java.sun.com/docs/books/tutorial/deployment/jar/ |
Thanks im on it right now
|
Jar files need a JRE or IDE to run thats the disadvantage but with .exe it can be accessed anytime anywhere....
thnaks appreciate your help on this one D.. |
I'd have to disagree. An .exe will only work for the framework it was developed for - a Windows .exe is unlikely to be executable on Linux for example. This is why Java is advantageous with the JRE, so the bytecode can be dynamically interpreted by the host system. This takes the specific architecture away from the developer, making applications more portable. This is one of the advantages that Java has over C# (which will only run to its full extent on a Windows machine). The .NET framework also uses the MIL, so its taking the same approach to the interpreter as Java does.
This of course, ignores emulations like cygwin and wine. If you want to make executable files, use C/C++. |
all the same then is it possible converting to C" from .java then to exe from C# if you know of any software?
anyways thanks though was helpful |
| All times are GMT +1. The time now is 04:57 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.