title: Intellij 2017.2.1 issue with glassfish
body: <p>I'm having issues setting up glassfish in intellij. I've set it from run/debug configuration and it reads as glassfish 4.1.1, when i run a project with it i have <code>GlassFish requires Java SE version 6.  Your JDK is version 0</code> . But under JRE in the glassfish configuration page i have Default(9 - Project SDK) . </p>