Remove old Java and install another version

2 posts
by Anas » 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.
Posts: 1
Joined: Tue May 16, 2017 7:46 am
by DougieLawson » 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

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
User avatar
Posts: 27887
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK