- Download the JDK from Oracle.
- Extract the file to /user/lib/jvm.
- Change the owner to root:
chown -R root:root jdk1.8.0_11* - Install java, javac, etc..:
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_11/bin/java 1065 - Setting the system's java version:
update-alternatives --cofig java - Testing the java installation:
java -version
No comments:
Post a Comment