Sunday, 24 March 2013

Building Jigsaw on Windows

Building Jigsaw on Windows is the same as building OpenJDK8 except that the URL to use in step 13 to get the root source is http://hg.openjdk.java.net/jigsaw/jigsaw/
hg clone http://hg.openjdk.java.net/jigsaw/jigsaw/
Post build define a JIG enviroment variable to prefix your java command:
 set JIG=C:\dev\jigsaw\build\windows-x86_64-normal-server-release\images\jdk-module-image
A few commands:
List the modules in the JDK system library:
 %JIG%/bin/jmod list
Launch a modular java application:
%JIG%/bin/java -m jdk.jconsole