N.B.: Remember - Java JDK has many more executables that you can similarly install as above. Sudo chown -R root:root /usr/lib/jvm/jdk1.8.0 Be sure to use a higher priority if you want Oracle JDK to remain the default.Ĭorrect the file ownership and the permissions of the executables: This will assign Oracle JDK a priority of 1, which means that installing other JDKs will replace it as the default. Sudo update-alternatives -install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0/bin/javaws" 1 Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0/bin/javac" 1 Sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0/bin/java" 1 N.B.: Check carefully this folder name since Oracle seem to change this occasionally with each update. Install Java JDK The manual wayÄownload the 32-bit or 64-bit Linux "compressed binary file" - it has a ".tar.gz" file extension. There is a similar answer on how to install JRE 7.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |