How to setup JDK7 and/or JDK8

Download JDK archives from Oracle site: 


Install packages:
sudo apt-get install libc-dev libm-dev c++-sunpro libsendfile-dev

Setup your JAVA_HOME and PATH to 'java' tools: export JAVA_HOME=<PATH to decompressed archive>

you have to decompress 32bit first of solaris version and after that 64bit to the same directory.
Needs for JDK8:
apt install oracle-java8-jdk libx11-6 libxi6 libxtst6

root@z102:~# ln -s libX11.so.6 /usr/lib/64/libX11.so.4
root@z102:~# ln -s libXi.so.6 /usr/lib/64/libXi.so.5
root@z102:~# ln -s libXtst.so.6 /usr/lib/64/libXtst.so.1