Soheil1
Soheil1

Reputation: 1

My openjdk-7-jdk is out of date

I am running ubuntu 12.04 LTS. because my Java program is going to use the method getSystemCpuLoad(), I need java-1.7.0, but the current version is 1.6.0_31 My typing of

$ java -version gives: java version "1.6.0_31" OpenJDK Runtime Environment (IcedTea6 1.13.3) (6b31-1.13.3-1ubuntu1~0.12.04.2) OpenJDK Client VM (build 23.25-b01, mixed mode, sharing)

What do I do? I found no wy to download a newer openjdk for Ubuntu, upon visiting openjdk.java.net/install/

Upvotes: 0

Views: 232

Answers (1)

Basil Bourque
Basil Bourque

Reputation: 340070

Oracle provides releases of Java 8 for Ubuntu 12 & 13 for both 32-bit and 64-bit machines.

This tutorial from Digital Ocean explains how to install both OpenJDK and Oracle JDK on Ubuntu 12 with various options.

This question, Installing Java 7 on Ubuntu, has multiple answers.

Upvotes: 1

Related Questions