Can I compile a Java program to a binary executable, .exe on a PC?
Compiling into native code destroys portability, which is one of the main benefits of Java. If you want to create a native executable because you wanted to make it easy to distribute and use programs, consider a Jar file instead. Some companies make products that do this. See the webpages for NaturalBridge http://www.naturalbridge.com , Symantec http://www.symantec.com, JET http://www.excelsior-usa.com/jet.html , Tower Technology http://www.twr.com/. The first four are targeted to Microsoft Windows. Tower Technology supports several flavors of UNIXTM. See also Instantiations JOVE http://www.instantiations.com/jove.htm, Network World, “Vendors Rush To Speed Java Performance”, Feb 9 1998, at http://www.nwfusion.com/news/0209java.html Compiling to native code takes away the most significant benefit of Java technology: portability of executables. Further, if you want your Java DLL (or .exe) to interact with C++, you’ll have to specify which specific C++ compiler and/or actually compile som
Ans : Compiling into native code destroys portability, which is one of the main benefits of Java. If you want to create a native executable because you wanted to make it easy to distribute and use programs, consider a Jar file instead. Some companies make products that do this. See the webpages for Symantec , Supercede , and Tower Technology . The first two are targeted to Windows. Tower Technology supports several flavors of Unix. Also, there is a native Java compiler from IBM, known as the HPJ (High Performance Java) compiler. One user has reported that it created a 2Mb executable from a 12K java file, and did not run any faster. See http://www.alphaworks.ibm.com/ See also Instantiations JOVE , the paper about the Toba project , Network World, “Vendors Rush To Speed Java Performance”, Feb 9 1998, at http://www.nwfusion.com/news/0209java.html Compiling to native code takes away the most significant benefit of Java: portability of executables. Further, if you want your Java DLL (or .ex
Ans : Compiling into native code destroys portability, which is one of the main benefits of Java. If you want to create a native executable because you wanted to make it easy to distribute and use programs, consider a Jar file instead.Some companies make products that do this. See the webpages for Symantec , Supercede , and Tower Technology . The first two are targeted to Windows. Tower Technology supports several flavors of Unix. Also, there is a native Java compiler from IBM, known as the HPJ (High Performance Java) compiler. One user has reported that it created a 2Mb executable from a 12K java file, and did not run any faster. See http://www.alphaworks.ibm.com/ See also Instantiations JOVE , the paper about the Toba project , Network World, “Vendors Rush To Speed Java Performance”, Feb 9 1998, at http://www.nwfusion.com/news/0209java.html Compiling to native code takes away the most significant benefit of Java: portability of executables. Further, if you want your Java DLL (or .exe