I wanted to clarify that from December 9, 2016, you can certainly install Java 8 on Ubuntu Bash for Windows 10 and that @Karl Horton is correct.
You will need to install unzip sudo apt-get install unzip
Copy this script somewhere in your Bash for the Windows session and make it executable (chmod + x filename). If you are not using a command line editor such as vim, then you will have Windows line endings. you can use dos2unix or your preferred way to handle this. I just paste it into a file using vim.
#!/bin/bash set -ex # UPDATE THESE URLs export JDK_URL=http:
And now I can do the following
fieldju@DESKTOP-LTL6MIC:~$ java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
The links and versions in the above script are likely to be out of date by the time you read this, so just go to http://www.oracle.com/technetwork/java/javase/downloads/index.html accept the license to their js let you copy the new urls and you should be good to go.
fieldju Dec 10 '16 at 4:35 2016-12-10 04:35
source share