Can java applications be compiled into executable files???
Printable View
Can java applications be compiled into executable files???
Well, Java applications ARE compiled into executables;) .Class files that are parsed by javas JIT compiler.
What you're asking is wether or not you can use a windows .exe to launch your java application and the short answer is no - not natively.
You can however, either make a batch file using windows scripting, or write a small launcher in C++/VB6/Someotherlanguagethatmakesexecutables.
Hope it helps.
Or you can use a java-to-native compiler, which exists. Not sure if there is a good one for Windows, but they exist.
thanks, that solves it. Actually i have made .bat files but it shows the runtime errors