How to setup JDK7 and/or JDK8

Download JDK archives from Oracle site: 


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.