Version | Code Name | End-of-life (free1) | Release Date |
---|---|---|---|
Java SE 10 (Early Access) | None | Future | 2018-03-20 |
Java SE 9 | None | Future | 2017-07-27 |
Java SE 8 | Spider | Future | 2014-03-18 |
Java SE 7 | Dolphin | 2015-04-14 | 2011-07-28 |
Java SE 6 | Mustang | 2013-04-16 | 2006-12-23 |
Java SE 5 | Tiger | 2009-11-04 | 2004-10-04 |
Java SE 1.4 | Merlin | Prior to 2009-11-04 | 2002-02-06 |
Java SE 1.3 | Kestrel | Prior to 2009-11-04 | 2000-05-08 |
Java SE 1.2 | Playground | Prior to 2009-11-04 | 1998-12-08 |
Java SE 1.1 | None | Prior to 2009-11-04 | 1997-02-19 |
Java SE 1.0 | Oak | Prior to 2009-11-04 | 1996-01-21 |
Main.java
.public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Main.java
).Main.java
using the cd
command:cd /path/to/containing/folder/
javac
command:$ javac Main.java
javac.exe
path (usually in C:\\\\Program Files\\\\Java\\\\jdk(version number)\\\\bin
) and run:$ C:\\\\Program Files\\\\Java\\\\jdk(version number)\\\\bin\\\\javac Main.java
Note: Ensure that the Java path is added to the environment.