Programming in Java on Your Computer


Premium Content - Free Preview

Its nice to be able to code in the browser, but you get certain benefits by coding Java on your own computer. To do that, you'll need these 3 things installed, which will be discussed below:

  • JVM, a.k.a. "Java"
  • a compiler (the JDK)
  • an IDE (for coding in)

Running Java

Source code is the actual code that you write, which needs to be converted into lower levels of code for computers to actually run it. In Java, the source code is converted into Java Bytecode, which is then run on the Java Virtual Machine (JVM). To run any Java program on your computer, you need to have "Java" installed, i.e. the JVM. You probably have it already, but it can be downloaded here.

To compile your Java source code into Java Bytecode, you need a Java compiler, which is included in the Java Development Kit, or JDK.

JVM-architecture-chart

Installing the JDK on your Computer

Update: You can now download the JDK with BlueJ from the BlueJ website. This is the easiest way to get everything set up.


End of Free Content Preview. Please Sign in or Sign up to buy premium content.

Comments

Contact Us
Sign in or email us at [email protected]