Two Java Version(JDK 1.7 & JDK 1.8) on same machine

My current Java version is

java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

I want to install Java 8 too in same machine & use it as per my requirement.

I'm using Ubuntu 14.0.4 LTS

Is that possible? Please help!!

1

1 Answer

I currently am running both Java 7 and Java 8 on my computer here is a link to the guide I used to install Java 8 This sets my default Java to 8, but if I want to run something under Java 7 I can right click as select run with openJDKJava7.

Hope this helps!

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like