I am quite new to Ubuntu. I have recently installed 14.04 on my PC and it's fantastic. My only real issue for Ubuntu is that I need an Internet connection to install things effectively. I had recently downloaded the Oracle JDK (1.8.0_77 for 32 bit) and tried to install it. I know for sure that I am running 32 bit. When I unpacked the tar.gz
and put it into /usr/lib/jvm
(I have also tried this in /usr/local/java
) and I used all the necessary commands (sudo updates alternatives, etc) but when I run /usr/lib/JVM/jdk1.8.0_77/bin/java
I get an error:
bash: /usr/lib/jvm/jdk1.8.0_77/bin/java: cannot execute binary file: Exec format error
Is there something I did wrong? Is there a way for me to easily install JDK on my PC without Internet connection?