Can I compile a Java program 2 a binary executable, .exe on a PC?
Ans : Compiling into native code destroys portability, which is one of D main benefits of Java. If you want 2 create a native executable because you wanted 2 make it easy 2 distribute N use programs, consider a Jar file instead. Some companies make products that do this. See D webpages for Symantec , Supercede , N 2 wer Technology . D first two R targeted 2 Windows. 2 wer Technology supports several flavors of Unix. Also, D re is a native Java compiler 4m IBM, known as D HPJ (High Performance Java) compiler. One user has reported that it created a 2Mb executable 4m a 12K java file, N did not run any faster. See http://www.alphaworks.ibm.com/ See also Instantiations JOVE , D paper about D 2 ba project , Network World, “Vendors Rush 2 Speed Java Performance”, Feb 9 1998, at http://www.nwfusion.com/news/0209java.html Compiling 2 native code takes away D most significant benefit of Java: portability of executables. Further, if you want your Java DLL (or .exe) 2 interact with C++, you’ll ha