...
Code Block | ||
---|---|---|
| ||
setenv J2SDKDIR /usr/lib/jvm/default-java setenv J2REDIR /usr/lib/jvm/default-java/jre setenv PATH ${PATH}:/usr/lib/jvm/default-java/bin:/usr/lib/jvm/default-java/db/bin:/usr/lib/jvm/default-java/jre/bin setenv JAVA_HOME /usr/lib/jvm/default-java setenv DERBY_HOME /usr/lib/jvm/default-java/db |
The oracle-java8-set-default package install only those two files. The system will ensure that one those files will be runned when you open a session.
Close and re-open a session and check your environment with a printenv command.
In this tutorial we are using the debian layout who uses default-java. Tomcat is known to use it and as such we ensure that our system is tuned  accordingly.
Verification
Make sure something silly didn't happen and your alternatives were set to Oracle Java:
...