How to compile Java - Printable Version +- Web Design Forum HTML CSS JavaScript PHP Graphic Design SEO forum (http://www.webdesignforum.com.au) +-- Forum: Web and Graphic Design (/forumdisplay.php?fid=1) +--- Forum: Web design (/forumdisplay.php?fid=4) +--- Thread: How to compile Java (/showthread.php?tid=1453) |
How to compile Java - therapy - 02-10-2012 05:54 PM We all know Java compiles down into byte format which requires a JVM to run. Often for deployment we can not guarantee that our clients will have the JRE installed, nore can we supply them with a jar file. What solutions do people use to compile their Java code into native code for simple use and execution? RE: How to compile Java - websitebuildersperth - 02-11-2012 07:06 PM jdk 1. 4 is used to compile java code RE: How to compile Java - hairtransplant - 02-13-2012 10:03 PM Before the Java virtual machine (VM) can run a Java program, the program's Java source code must be compiled into byte-code using the javac compiler. Java byte-code is a platform independent version of machine code; the target machine is the Java VM rather than the underlying architecture. To compile a Java source code file Foo.java, you would do the following: % javac -g Foo.java The -g command line option is optional, but we recommend using it as it makes debugging easier. |