[ubuntu] installing Oracle java

unzip the java package into a folder under /opt/ sudo update-alternatives –install “/usr/bin/java” “java” “/opt/java/64/jdk1.8.0_77/bin/java” 1 sudo update-alternatives –set java /opt/java/64/jdk1.8.0_77/bin/java sudo update-alternatives –install “/usr/bin/javac” “javac” “/opt/java/64/jdk1.8.0_77/bin/javac” 1 sudo update-alternatives –set javac /opt/java/64/jdk1.8.0_77/bin/javac

Fedora (22, 23) open ports

1. List all zones:

2. Find the default zone in the above command output

3. Add port

4. Reload firewall