SpatialOS SDK versions installed locally: 12.0.1.
with JDK 9 version
gives an error when you try to build a game, experienced for the Wizards and Pirates tutorial.
Had to run /usr/libexec/java_home -V,
then run export JAVA_HOME=
/usr/libexec/java_home -v 1.8.0_151
and exclude the JDK from being picked by default by renaming its Contents/Info.plist to Info.plist.disabled