12/24/2023 0 Comments Sudo apt get java![]() Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You will need to replace ‘ IP_Address‘ and ‘Port_number‘ with your server’s respective IP address and SSH port number. Log in to the Server & Update the Server OS Packagesįirst, log in to your Ubuntu 20.04 server via SSH as the root user: ssh -p Port_number Install Oracle JDK 17 on Ubuntu 20.04 – Manual Method.Install Oracle JDK 17 on Ubuntu 20.04 – DPKG Method. ![]() Install Oracle JDK 17 on Ubuntu 20.04 – APT PPA Method.Install OpenJDK 17 from Ubuntu 20.04 Repository.Log in to the Server & Update the Server OS Packages.var/lib/dpkg/info/jre1.8.0-45.postinst: line 641: /usr/sbin/alternatives: No such file or directoryĭpkg: error processing package jre1.8. While setting environment, I found the errorĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/rt.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/jsse.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/charsets.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/ext/localedata.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/ext/jfxrt.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/plugin.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/javaws.packĮrror: Could not open input file: /usr/java/jre1.8.0_45/lib/deploy.pack The previous 8u201 was the last freely available version.” as suggested by one comment here: One possibility is that “401 is because 8u211 is the first version that is paid only. Processing triggers for fontconfig (2.12.6-0ubuntu2) …Įrrors were encountered while processing:Į: Sub-process /usr/bin/dpkg returned an error code (1) Processing triggers for hicolor-icon-theme (0.17-2) … Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) … Setting up oracle-java11-set-default (11.0.2-2~linuxuprising1) … Processing triggers for shared-mime-info (1.9-2) … Installed oracle-java8-installer package post-installation script subprocess returned error exit status 1 HTTP request sent, awaiting response… 401 Authorization Requiredĭpkg: error processing package oracle-java8-installer (–configure): > sudo apt install oracle-java11-installer Use our another tutorial to Install Tomcat 7 or Install Tomcat 8 or Install Tomcat 9 on Ubuntu, Debian, and LinuxMint systems. You may also need to install Tomcat server to run your Java web application. JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jreĪll done, you have successfully installed Java 8 on a Linux system. ![]() JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 You can set these variables in /etc/environment file using the following command. Step 3 – Setup JAVA_HOME and JRE_HOME VariableĪs you have installed Java on your Linux system, You must have to set JAVA_HOME and JRE_HOME environment variables, which is used by many of the Java applications to find Java libraries during runtime. OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode) ![]() ![]() Let’s verify the installed and current active version using the following command. You have successfully installed Java 8 on your system. Sudo apt install openjdk-8-jdk openjdk-8-jre Run below commands to install Java 8 on Ubuntu and LinuxMint. You can simply install Java 8 on an Ubuntu system using the following commands. The OpenJDK 8 is available under default Apt repositories. Follow the below steps to install Java 8 on Ubuntu via the command line. Use this tutorial to install OpenJDK Java 8 on Ubuntu 19.10, 18.04 LTS, 16.04 LTS, LinuxMint 19, 18 using PPA. Read this => Install Oracle Java 11 on Ubuntu 18.04 LTS (Bionic).Read this => Install Oracle Java 11 on Ubuntu 16.04 LTS (Xenial).You may also continue to this tutorial to install OpenJDK 8. You can use below link to install Java 11. IMPORTANT: The Oracle Java 8 is no longer available to download publicaly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |