Posts: 1
Joined: Tue May 16, 2017 7:46 am

Remove old Java and install another version

Tue May 16, 2017 8:00 am

I downloaded a java 7 for linux 64x in my raspberry pi. then i realized there is a special java 7 for raspberry pi, so i download that one through this code
sudo apt-get update && sudo apt-get install oracle-java7-jdk

then i realized there is a java 8 installed already.
My question is that how can i delete the java 8 and the first java 7 ,and only keep the special version of java for raspberry pi.

User avatar
Posts: 32044
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Remove old Java and install another version

Sun May 21, 2017 1:32 pm

update-alternatives --get-selections
to see what's available
sudo update-alternatives --config java
to pick the one to use.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3B*3, 3B+

Please post ALL technical questions on the forum. Do not send private messages.

Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest