![]() ![]() Sudo update-alternatives -set javac /usr/local/java/jdk1.7.0_80/bin/javac Sudo update-alternatives -set java /usr/local/java/jdk1.7.0_80/bin/java Sudo update-alternatives -install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_80/bin/javaws" 1 Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_80/bin/javac" 1 Sudo update-alternatives -install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_80/bin/java" 1 PATH=$PATH:$JRE_HOME/bin:$JAVA_HOME/binexport Scroll down to the end of the file using arrow keys and add the following lines below to the end of /etc/profile file:.Open /etc/profile with sudo privileges:.Check if tarball has been successfully extracted:.Sudo cp -r jdk-7u80-linux-圆4.tar.gz /usr/local/java/ Create a a directory in /usr/local where java will reside and copy tarball there:.Navigate to your downloaded JDK (for example ~/Downloads):.Download the JDK for Linux 32-bit or 64-bit (for example: jdk-7u80-linux-圆4.tar.gz) here.this tutorial share how to install java 7 along with java 8 and how to switch each other. however recent release of linuxmint 19.1 (based on ubuntu 18.04) come with java 8 as it’s default. Some application still rely on old java, for example iReport 4.0.1 that used by openbravo still rely on java 7. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |