

- #INSTALL OPENJDK 11 UBUNTU 18. INSTALL#
- #INSTALL OPENJDK 11 UBUNTU 18. 64 BIT#
- #INSTALL OPENJDK 11 UBUNTU 18. FOR WINDOWS 10#
I also then ran the following to ensure there are definitely no line endings from windows: Sed 's/^M$//' java_install_predownloaded.sh > java_install_predownloaded_unix.sh sh fileīecause the file has the windows carriage returns you need to ensure they are replaced, so in bash navigate to where you saved java_install_predownloaded.sh and run the following command: This code is a modified version from which assumes the zips are already downloaded and in the same folder as this. Copy and paste the following script into notepad and save it as java_install_predownloaded.sh in the same folder alongside the zips:.Download the unlimited strength policy seperately in the same folder as the last zip, again ensuring you keep the filename as-is.
#INSTALL OPENJDK 11 UBUNTU 18. 64 BIT#
Download the latest Linux version of the Java JDK from the oracle website (I have a 64 bit system so I chose "Linux 圆4") and save it in a folder somewhere on your computer that you can get to in bash NOTE: don't change the file name to ensure it works with the script.
#INSTALL OPENJDK 11 UBUNTU 18. INSTALL#

Sudo update-alternatives -install /usr/bin/javac javac /usr/lib/jvm/oracle_jdk8/bin/javac 2000 Sudo update-alternatives -install /usr/bin/java java /usr/lib/jvm/oracle_jdk8/jre/bin/java 2000

Mv UnlimitedJCEPolicyJDK8/US_export_policy.jar /usr/lib/jvm/oracle_jdk8/jre/lib/security/ Mv UnlimitedJCEPolicyJDK8/local_policy.jar /usr/lib/jvm/oracle_jdk8/jre/lib/security/ Wget -no-cookies -header "Cookie: oraclelicense=accept-securebackup-cookie" \ # Download Oracle Java 8 accepting the license you can use dos2unix or your preferred way of dealing with that. If you do not use a command line based editor such as vim then you will have windows line endings to deal with. You will need to install unzip sudo apt-get install unzipĬopy this script somewhere in your bash for windows session and make it executable (chmod +x filename).
#INSTALL OPENJDK 11 UBUNTU 18. FOR WINDOWS 10#
I wanted to clarify that as of 9 December 2016, you most certainly can install Java 8 on Ubuntu Bash for Windows 10 and that Horton is correct.
