title: Getting 'java.lang.RuntimeException: No toolkit found' error on running javafx application with java11
body: <p>We recently migrated from java 8 to openJdk11. Now I am trying to test my application on windows and ubuntu with using openJdk installed on both OS. I'm able to run it on ubuntu. But same is not executing in windows10 with java11.Error_Message:</p>
  
  <p><a href="https://i.stack.imgur.com/UABZk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UABZk.png" alt="enter image description here"></a></p>
  
  <pre><code>java.lang.RuntimeException: No toolkit found
  at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272)
  at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
  at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
  at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
  at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
  at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
  at java.base/java.lang.Thread.run(Unknown Source)
  </code></pre>