1. Installation

Created Friday 20 March 2015

http://www3.ntu.edu.sg/home/ehchua/programming/howto/Ubuntu_HowTo.html#jdk

Check if installed

javac -version

Hello world

hello.java
public class Hello {
public static void main(String[] args) {
System.out.println("Hello world");
}
}

Compile

cd ~/helloProject
javac hello.java
java hello



Backlinks: