Skip to main content

Javac compiler option to build Windows native exe

51 replies [Last post]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jwenting
Offline
Joined: 2003-12-02
Points: 0

Why should I want a native Windows executable generated from my Java compilers which I run on AIX, SCO, Solaris, HP Ux, and Linux?

Or from the ones I run on Windows but get their generated classfiles deployed on any combination of the above mentioned platforms?

If you want native, there's a bunch of 3rd party tools out there that will convert or wrap your classes into native code for some platforms.
It's not Sun's responsibility to provide, or if they choose to they should provide functionality to provide native exes for any possible platform in every platform's compiler (so the Windows compiler should be able to generate code for Windows, Linux (on all architectures), AIX, Solaris, etc. etc. etc.).
Rather impossible as Sun doesn't control those platforms, doesn't in fact provide JVMs for all of them.