I just ran the script below and it fetches and unpacks the JDK into the correct location. Problem is that every java command (as copied to /urs/bin) gi
java
I was getting the
bash: /usr/bin/java: No such file or directory
The issue was I installed the i586 version of Java on a x86_64 Debian.
i586
x86_64
The fix: I removed it and install the x64 version of Java. Everything is working fine now.
x64