I just completly shifted to Ubuntu from Windows 7. I am a java developer and now I need to install Java 8 JDK and JRE. I installed 64 bit ubuntu 14.04.02 and it seems like there are lot of ways to install the Oracle Java JDK, but I am not understanding any of it properly (mostly because the tutorials are outdated!).

Now, the easiest way I found is in here -<http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/>

But I am not sure whether this is a good idea to install via a PPA because it is coming from a third party source.

I didn't monitor any step by step guide on askubuntu about installing the Java JDK 8. Can someone help me with that please? Just installing is not enough, setting up the environment variables also mandatory.

Anyway, if the PPA is the recommended best way, please let me know that too.