title: Can't run Grails 4.0.1 cli with Java 11 - get null pointer error in stacktrace
body: <p>I can't run the grails 4.0.1 command line to create a new app etc </p>
  
  <p>My environment: </p>
  
  <ul>
  <li>Windows 10 </li>
  <li>Java 11.0.5 JDK </li>
  <li>Grails 4.0.1 </li>
  <li><p>Groovy v3.0.0-rc-1</p></li>
  <li><p>JAVA_HOME set (D:\Program Files\Java\jdk-11.0.5)</p></li>
  <li>GRAILS_HOME set (D:\dev-binaries\grails\grails-4.0.1) </li>
  <li>GROOVY_HOME set (D:\dev-binaries\groovy\groovy-3.0.0-rc-1)</li>
  </ul>
  
  <p>When I start a command line and try to start grails shell I get (ignoring the Java 11 reflection warning) </p>
  
  <pre><code>| Error Error occurred running Grails CLI: null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
  java.lang.NullPointerException
          at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:515)
          at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:306)
          at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)
          at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
  | Error Error occurred running Grails CLI: null
  </code></pre>
  
  <p>So now I am stuck - I can't the grails shell and can't run a 'create-app' script</p>
  
  <p>grails -version only seems to work and reports this on command line </p>
  
  <pre><code>| Grails Version: 4.0.1
  | JVM Version: 11.0.5
  </code></pre>
  
  <p>How can I resolve this? I'd rather not have to revert all my versions if avoidable.</p>