You don't. It's the program "javac" that does the compilation.
Little cheesecake
You compile it.You compile it.You compile it.You compile it.
True. Java source code is called "platform independent" because it runs on top of the Java Runtime Environment (JRE). In order for this to work, a special JRE must be created for the platform you want to run a Java program on.
Depends on what you mean by a "job". You can compile a program.
One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.
It means you have not installed jdk and jre in your machine...
The command to compile a Java program is "javac", followed by the class name (file name).
There are two main things you can download for Java: the Java Runtime Environment (JRE) and the Java Development Kit (JDK). The JRE is used by those who wish only to run Java programs. In order to do this it uses the Java Virtual Machine (JVM) to run Java bytecode. The JDK is used by developers and contains both the JRE and the programs and libraries needed to compile and run Java programs. Simple summary: The JDK contains the JRE which contains the JVM.
Its not the processor that it is compatibal with. The JRE runs java on most major oporating systems. The JRE sends the execution data to the OS which then has the processor process the data, then execute the resaults. The JRE uses the OS to execute the program.
Age old question. :) Simply Put: - If you need to execute any java program you need JRE (as the name says "Runtime Env"). - If you need to compile some java code you ll need JDK (as the name says "Development Kit"). One more thing to be noted is JRE will always be shipped with JDK because as I mentioned earlier JDK compiles the code, so if you want to execute the compiled code you need JRE. Hope this helps. . The "JDK" is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software. The "JRE" is the Java Runtime Environment. I.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs. Typically, each JDK contains one (or more) JRE's along with the various development tools like the Java source compilers, bundling and deployment tools, debuggers, development libraries, etc.
I had to compile a list of all the people who had seen the accident. Take these reports and compile a history starting with the oldest dates first. The doctor asked me to compile my medical history.
Your program is portable if you can compile and execute it on different platforms.