As the JDK moves to Visual Studio 2013 for its
toolchain, this version focuses on building Java 9 on Windows (10 64bits) with Visual Studio 2013 (Community). As it takes a few short-cuts, refer to the Java 9 with plain Windows SDK
version or/and to the Java 8
version (for using plain Cygwin).
- Create a C:\dev\ directory
- Download and install Visual Studio 2013 Community
- Download (it may be faster to download the ISO)
- Install
- uncheck all the options
- or download AdminDeployment.xml to C:\dev\temp then start the installation with:
vs_community.exe /AdminFile C:\dev\temp\AdminDeployment.xml
- Add the path to MSBuild to the PATH environement variable (required to build Freetype):
C:\Program Files (x86)\MSBuild\12.0\Bin
- Download and install the Mercurial for Windows
- Download and install Java 8 (if not already done)
- Download and install Babun, then use its package manager to install zip :
pact install zip
- Download Freetype source (2.5.5) and extract to C:\dev\freetype-2.5.5
- In the Babun console:
cd /cygdrive/c/dev
- Get the root source:
hg clone http://hg.openjdk.java.net/jdk9/jdk9/
(or the more bleeding edge http://hg.openjdk.java.net/jdk9/dev/ )
- Move to the new directory
cd /cygdrive/c/dev/jdk9
- Get the remainder of the source
./get_source.sh
- Force the permissions
chmod -R u+rwxs .
(otherwise some files get access denied errors)
- Run the auto-conf script
bash configure --with-freetype-src=/cygdrive/c/dev/freetype-2.5.5
- Time for cooking
make images
- Once done, open a new standard Windows console and navigate to
C:\dev\jdk9\build\windows-x86_64-normal-server-release\images\jdk
check that java runs:
bin\java -version
or for something a bit more visual:
bin\jconsole
- enjoy!
For day to day refresh do the following (in the Babun shell):
- Go to the JDK directory
cd /cygdrive/c/dev/jdk9
- Get the sources updates
./get_source.sh
- Force the permissions
chmod -R u+rwxs .
- Remove the build directory
rm -rf build/
- Rerun the auto-conf script to update the time stamp of the build:
bash configure --with-freetype-src=/cygdrive/c/dev/freetype-2.5.5
- Re-heat
make images
No comments:
Post a Comment