I removed openjdk-7 completely using
apt-get purge and installed oracle jdk(8u45).I have the oracle jdk in path and it is working well .The Problem is that, if I try to install any software(from cmdline or software center) which depends on java([open]jdk) ,I am forced to install openjdk. Is there any work around for this...?
Os : Ubuntu 15.10
I appended this in /etc/profile :
JAVA_HOME=/usr/local/java/jdk1.8.0_45 JRE_HOME=$JAVA_HOME/jre PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export JAVA_HOME export JRE_HOME export PATH