Java install

Hi Guys

I have installed latest java version 8.0, but now when I use java -version I still get an old version.

How do I correct this ?

Thanks in advance...

Look at the environment variable JAVA_PATH:

echo $JAVA_PATH

It is probably set up incorrectly. Check your PATH variable as well.

You can also use the eslelect tool so choose between versions of installed packages

Java - Gentoo Wiki

You if you emrege -uDNa @world as well as emerge --depclean afterwards you probably would have gotten the old java unmerged anyway... unless there was a dependancy pulling it in. not very likely though.