Javac compiler option to build Windows native exe
this is just a speculative thread, so hit me if i am totally wrong ;)
First off all i want to say that i love to work with java because of its simplicity and wide set of programming tools. However, there is one shortcoming in java that frustrated me over the years: the miss or lack of native code compilation that is, compiling java.exe files like its possible with C/C++.
I know this is a very contradictous matter and there are people claiming that native code compilation is not build-in in java to preserve its platform independence.
I may object that - and practice has prooven that - in most cases people are offering java binaries for different platforms however they may offer only one ignoring the end-users actual platform.
For example the Eclipse and NetBeans IDEs offer binaries for Windows, Linux, Mac etc.
I know there are native code compilers shipped with Java but it would be a nice feature to be able to build native code right away.
For example, if you are using java on a windows platform it should be possible to have a compiler switch that would automatically generate Windows exe files instead of java byte code if the developer so whiches.
That would minimize the job for developers to look for other solutions - i.g. writing a batch script, building a jar manifesto etc. - to just passing a compiler option.
Since Windows is the only platform that supports "exe" files - Linux and Mac have other extensions as far as i know - this would be a windows-platform only feature.