title: Exception in Application constructor java.lang.reflect.InvocationTargetException
body: <p>so here it is.. i am new to javaFX and trying to run my first code so this is the error i get.. dont have any idea what is means! </p>
  
  <pre><code>Exception in Application constructor
  java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
      at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
  Caused by: java.lang.RuntimeException: Unable to construct Application instance: class fx_example.example
      at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
      at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152(Unknown Source)
      at com.sun.javafx.application.LauncherImpl$$Lambda$50/1323468230.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$158(Unknown Source)
      at com.sun.javafx.application.LauncherImpl$$Lambda$51/788672666.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$46/186276003.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$48/622793233.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$$Lambda$47/237061348.run(Unknown Source)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$$Lambda$36/2117255219.run(Unknown Source)
      ... 1 more
  Caused by: java.lang.NullPointerException: Root cannot be null
      at javafx.scene.Scene.&lt;init&gt;(Unknown Source)
      at javafx.scene.Scene.&lt;init&gt;(Unknown Source)
      at fx_example.example.&lt;init&gt;(example.java:12)
      ... 18 more
  Exception running application fx_example.example
  </code></pre>
  
  <ol>
  <li>i am new to all this and dont know wt it means... i really wanna know more about fx </li>
  </ol>