![]() Once the upload has completed, you can install it with the following command: dnf localinstall jdk-14_linux-圆4_bin.rpm -y Upload the file using your CentOS 8 server information: This can be done using WinSCP.ĭownload WinSCP and install WinSCP using the following guide: You may now need to upload the file to your Centos8 server from your local desktop. Click on jdk-14_linux-圆4_bin.rpm to download it in your system. Here, you can see the different versions of Java 14. Next, verify the JAVA_HOME environment with the following command: echo $JAVA_HOMEįirst, you will need to download the Oracle Java 14 RPM package file from the Oracle download page, as shown below. Then, activate the changes with the following command: source /etc/profile Save and close the file when you are finished. You can set the JAVA_HOME environment variable for OpenJDK 11 by editing the file /etc/profile: nano /etc/profileĪdd the following line at the end of the file: JAVA_HOME="/usr/lib/jvm/java-11-openjdk-11.0.5.10-2.el8_1.x86_64/" ![]() You can use the JAVA_HOME environment variable to define the Java installation path. In some Java-based applications, you will need to define the installation location of Java to specify which Java version you want to use to run the application. Step 5 – Setup JAVA_HOME Environment Variable You should see that OpenJDK 11 is the default Java version on your system. ![]() Now, verify the default Java version with the following command: java -version Type 1 and press Enter to switch the Java version from OpenJDK 8 to OpenJDK 11. In the following output, you should see that OpenJDK 8 is the default version on your system. You can switch between multiple Java versions using the following command: alternatives -config java You can install it with the following command: dnf install java-1.8.0-openjdk -yĪt this point, you have two different versions of Java installed on your system. Once installed, verify the installed Java version with the following command: java -versionīy default, OpenJDK 8 is available in the CentOS 8 default repository. You can install it by running the following command: dnf install java-11-openjdk -y dnf update -y Step 2 – Install OpenJDK 11īy default, OpenJDK 11 is available in the CentOS 8 default repository. Once you are logged into your CentOS 8 server, run the following command to update your base system with the latest available packages. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing CentOS 8 as the operating system with at least 1GB RAM. Step 1 – Create Atlantic.Net Cloud Serverįirst, log in to your Atlantic.Net Cloud Server.
0 Comments
Leave a Reply. |