java.lang.NullPointerException
at com.sun.javafx.Utils.getScreen(Unknown Source)
at com.sun.javafx.webkit.WebPageClientImpl.getScreenBounds(Unknown Source)
at com.sun.webkit.WCWidget.fwkGetScreenRect(Unknown Source)
at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
at com.sun.webkit.Timer.fireTimerEvent(Unknown Source)
at com.sun.webkit.Timer.notifyTick(Unknown Source)
at javafx.scene.web.WebEngine$PulseTimer.lambda$static$45(Unknown Source)
at javafx.scene.web.WebEngine$PulseTimer$$Lambda$99/3289861.pulse(Unknown Source)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source)
at com.sun.javafx.tk.Toolkit$$Lambda$272/21304817.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$400(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$40/7640891.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/20632278.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
import javafx.application.Application;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class MyApplication extends Application {
@Override
public void start(Stage stage) throws Exception {
WebView view = new WebView();
view.getEngine().load("http://www.oracle.com");
}
public static void main(String[] args) {
Application.launch(MyApplication.class);
}
}