Exercises based on some of the features of Java 10 released in the Early Access / General Availability build of JDK10.
Please note you are in the master
branch 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-solutions
branch for that.
Looking at the solutions can take away the challenge behind solving the exercises. Stay on the master
branch in case you would like to continue to have fun solving the exercises and working through the challenges.
Switch to exercise-solutions branch
See Download, install and verify JDK and return to this page to continue with the rest of the steps.
- Ensure you have a
git
client installed on your local machine/VM/vagrant box, for Windows usersgit-bash
is recommended
See Download and install tree and wget and return to this page to continue with the rest of the steps.
- Alternatively a Vagrant box is available at https://github.com/ali-ince/LJC_April2017_Hackday, please make use of this facility (thanks @ali-ince).
- Install the latest IDE (IntelliJ, Eclipse, NetBeans - paid or community version) that supports JDK 10 EA, once installed configure the IDE to pickup the JDK 10 EA installed in the previous steps.
See Download, install and configure Eclipse Oxygen for JDK10.
-
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.
- if you use
git-bash
(recommended) orcgywin
should work for you - run the.sh
scripts in one of the the environments. In the worst case scenario, we would have to manually convert the.sh
files into.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 insession-3-jshell
. - check if the literal JDK path (or
%JAVA_HOME%
) has been added to thePATH
environment variable or add it manually - ensure the JDK is installed in a folder where the name does not have a space in it
- in case folder name looks something
C:\Program files...
, ensure that (name does not contain spaces):- the path to the JDK in
JAVA_HOME
hasC:\Program~1
instead ofC:\Program files...
- the environment variable
PATH
refers to theJAVA_HOME
environment variable - the environment variable
CLASSPATH
refers to theJAVA_HOME
environment variable
- the path to the JDK in
- in some instances
jlink
was not yet available when JDK is installed via the.exe
file, even after the above path settings were applied (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: JEP 296: Local-Variable Type Inference
-
Session 2: JEP 313: Remove the Native-Header Generation Tool (javah)
-
Session 3: JEP 319: Root Certificates
-
Session 4: JEP 314 Additional Unicode Language-Tag Extensions
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 guidelines on how to contribute.
See License document to find out about the licensing terms and conditions.
- Features in Java 10
- What's Planned for JDK 10?
- Java 10 Checklist: Meet the Declaration That Will Change the Way You Code