Install Java

From Andreida
Revision as of 21:40, 4 May 2024 by Andreas (talk | contribs) (Created page with "There are two versions of Java, both with a JRE (if you just want to run java programs) and JDK (if you wish to develop java programs). Sadly, sometimes you need the JDK, even if you just want to run JAVA programs. * OpenJDK - JRE java -version apt-get install default-jre java --version * OpenJDK - JDK javac -version apt-get install default-jdk javac --version * Oracle's JRE [https://www.java.com/en/download/ Oracle's Java JRE] * Oracle's JDK [https://www.oracle....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There are two versions of Java, both with a JRE (if you just want to run java programs) and JDK (if you wish to develop java programs). Sadly, sometimes you need the JDK, even if you just want to run JAVA programs.

  • OpenJDK - JRE
java -version
apt-get install default-jre
java --version
  • OpenJDK - JDK
javac -version
apt-get install default-jdk
javac --version
  • Oracle's JRE
Oracle's Java JRE
  • Oracle's JDK
Oracle's Java JDK