2019-01-19: added the Mercurial instructions
- Activate Windows Subsystem for Linux
In an administrative Powershell:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Restart then install, say, Ubuntu from the Windows Store
Then launch wsl and complete the inialisation.
See Microsoft documentation for the full instructions - Create a C:\dev\ directory
- Download and install Git (or/and Mercurial)
- Download OpenJDK 11 and extract it to C:\dev\jdk-11.0.1
- Download and install Visual Studio 2017 Build Tools (when installing select the Visual C++ Build Tools, and ensure the language module is English (only))
- In a WSL console select the following packages
sudo apt install autoconf
(unzip will be installed with zip)
sudo apt install make
sudo apt install zip - Get OpenJDK's source:
in a (cmd) console:cd C:\dev
or if it is not up to date:
git clone https://github.com/openjdk/jdk.git
hg clone http://hg.openjdk.java.net/jdk/jdk/
cd C:\dev
hg pull
hg update
- Build OpenJDK
in a (wsl) console:cd /mnt/c/dev/jdk
(--disable-warnings-as-errors so that VS2017 warnings are not stopping the build)
bash configure --with-boot-jdk=/mnt/c/dev/jdk-11.0.1/ --disable-warnings-as-errors
make images - Test it
in a (cmd) console:
C:\dev\jdk\build\windows-x86_64-server-release\images\jdk\bin\java --version - hack!
No comments:
Post a Comment