![]() Now, you should have a fully functioning installation of Java on your Linux system. Now, install the file: sudo update-alternatives -install /usr/bin/java java /opt/java/jdk-version/bin/java 100Īgain, replace “version” with the specific version number of your Java installation. This will create a new file in the /opt/java directory, prefixed with “jre”. Now, extract the Java file with this command: sudo tar -zxvf jre-version-linux-圆4.tar.gz Replace “version” with the version number of the Java file that you downloaded. sudo mv /home/user/Downloads/jre-version-linux-圆4.tar.gz /opt/java Move the downloaded Java file to the desired directory. If the directory doesn’t exist, type: cd /opt For example, if you want to install Java in /opt/java, type: cd /opt/java Otherwise download the 32 bit file.Ĭhange to the directory where you want to install Java. If you’re running any other modern Linux distro, download the 64 bit Java installation file. (Unfortunately, no DEB files seem to be available.) But for this article, we’re going to download and install Java from scratch. ![]() RPM files are available for Red Hat, CentOS and Fedora. Download Java for Linuxįirst, visit the Java download page for Linux. ![]() ![]() While OpenJDK comes with many different Linux distros, it often doesn’t work very well with certain applications, and some applications require Oracle Java to be installed in order to run. At some point in your Linux journey, you may need to install Java. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |