Examples of some of the features of Jigsaw released in the Early Access build of JDK9.
Many of the examples here are directly from the Project Jigsaw: Module System Quick-Start Guide, see http://openjdk.java.net/projects/jigsaw/quick-start but we have also contributions from the Java community.
masterbranch which contains exercises which need to be solved by looking at documentation or resources provided in this repo. Hints may be provided within the source or script files. If you hit a roadblock and really want to see a possible solution you can switch to the
exercise-solutionsbranch for that.
masterbranch in case you would like to continue to have fun solving the exercises and working through the challenges.
See Download, install and verify JDK and return to this page to continue with the rest of the steps.
gitclient installed on your local machine/VM/vagrant box, for Windows users
See Download and install tree and wget and return to this page to continue with the rest of the steps.
Get familiar with the command-line a bit as we will be using much of it during the weekend
Prepare your VMs or cloud instances with the above, in case your local machine is not up for any installation or configurations
Note: the bash files provided should work on Linux and in theory on the MacOS as well.
cgywinshould work for you - run the
.shscripts in one of the the environments. In the worst case scenario, we would have to manually convert the
.bat, with minor tweaks should also work there. Happy to receive a pull request for it. Or you could use bach, a platform independent Java Shell Builder. It's usage is explained in
%JAVA_HOME%) has been added to the
PATHenvironment variable or add it manually
C:\Program files..., ensure that (name does not contain spaces):
PATHrefers to the
CLASSPATHrefers to the
jlinkwas not yet available when JDK is installed via the
.exefile, even after the above path settings were applied (please verify beforehand)
jlinkis not yet available when JDK is installed via the
.dmgfile (please verify beforehand)
Please ensure you have verified that the necessary JDK programs work in your environment with the help of the Download, install and verify JDK resource.
Session 1: Jigsaw Introduction
Session 2: JLink
Session 3: JShell
Session 3: Refactoring/migration sessions
Session 4: Multirelease JARs
Session 5: Reactive streams API
Session 6: Security enhancements
Each example is enclosed in a folder of its own containing bash scripts to compile, package and run the respective examples. Use these scripts for each of the examples.
See License document to find out about the licensing terms and conditions.