I have been trying to get Java for the past day now. I followed several tutorials but I keep getting the same error. After I put in tar -xvf jre-7u4-linux-i586.tar.gz
it says Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
I have a 64 bit system so I doubt that's the problem. The JDK installed perfectly, but I'm lost as to why the JRE wont work…
Best Answer
If OpenJDK isn't preferred, you can install the Oracle version from a ppa (which is a lot easier than manual installation, and you should also receive updates automatically). Adding via ppa also ensures that you are using the correct architecture (32 vs 64 bit).
Source: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html