![]() ![]() To setup Java environment variables, add the following lines to /etc/profile.d/java. Then confirm that correct alternatives are in play: $sudo alternatives -install /usr/bin/javaws javaws /opt/jdk1.8.0_101/bin/javaws 2 $sudo alternatives -install /usr/bin/javac javac /opt/jdk1.8.0_101/bin/javac 2 $sudo alternatives -install /usr/bin/jar jar /opt/jdk1.8.0_101/bin/jar 2 Restart Command Prompt to reload the environment variables. If the path contains spaces, use the shortened path name. Copied C:> setx /m JAVAHOME 'C:Progra1RedHatjava-8-openjdk-'. $sudo alternatives -install /usr/bin/java java /opt/jdk1.8.0_101/bin/java 2 Set the value of the environment variable to your OpenJDK 8 for Windows installation path: Copy. Next, use command update-alternatives to tell system where java and its executables are installed: You should now move it to a proper folder: To update IntelliJ to add the Java 8 SDK, do one of the following: From the Welcome to. $wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" sudo mkdir /usr/lib/jvm Step 2: Enter the following command to change the directory. If the directory already exists, you can ignore this command and move to the next step. You can either download Oracle JVM by using CA's account from Oracle website to your computer and upload it to the target computer using FTP etc., or use wget to put it there directly. Install Oracle JDK 8 Step 1: Open the terminal ( Ctrl + Alt + T) and enter the following command to create the parent directory to deploy the JDK.
0 Comments
Leave a Reply. |