Hello, Everyone! I lost my temper with the issue.
The problem is I cannot start my JavaFX FXML Application in WebBrowser. I use NetBeans 8.1 as
IDE, Windows 8 64-bit and jdk1.8.0_65. So, if I create a new JavaFX Application - it works. It works as a desctop and it works when I start it inside the WebBrowser. But if I create new JavaFX FXML Application it won't work. It works as a desctop application perfectly, but when I tried to start *.jnlp or in WebBrowser I got this:
Missing Application-Name manifest attribute for: file:/C:/Users/Sergey.Lotvin/Documents/NetBeansProjects/JavaFXApplication5/dist/JavaFXApplication5.jar
java.lang.NullPointerException: Location is required.
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafxapplication5.JavaFXApplication5.start(JavaFXApplication5.java:22)
What I did:
1. New Project > JavaFX FXML Application
2. Run to check if it works. So, button "Click Me" on the place, click and label "Hello World!" appeared.
3. Then go to project properties>Run>Run in Browser
4. Start
Java Config and add
file:///C:/... to exception list
5. I even signed my JavaFX FXML Application using
For sure I've created .keystore before etc. So I got message in cmd like - jar signed.
6. I got picture
7. but then picture
The problem is I cannot start my JavaFX FXML Application in WebBrowser. I use NetBeans 8.1 as IDE, Windows 8 64-bit and jdk1.8.0_65. So, if I create a new JavaFX Application - it works. It works as a desctop and it works when I start it inside the WebBrowser. But if I create new JavaFX FXML Application it won't work. It works as a desctop application perfectly, but when I tried to start *.jnlp or in WebBrowser I got this:
> Missing Application-Name manifest attribute for: file:/C:/Users/Sergey.Lotvin/Documents/NetBeansProjects/JavaFXApplication5/dist/JavaFXApplication5.jar
java.lang.NullPointerException: Location is required.
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafxapplication5.JavaFXApplication5.start(JavaFXApplication5.java:22)
What I did:
New Project > JavaFX FXML Application
Run to check if it works. So, button "Click Me" on the place, click and label "Hello World!" appeared.
Then go to project properties>Run>Run in Browser
Start Java Config and add
file:///C:/... to exception list
I even signed my JavaFX FXML Application using
keytool -genkey -keystore .keystore -alias «Terrasoft» -validity 99999 jarsigner.exe -keystore .keystore myJavaFXFXMLApplication.jar «Terrasoft» For sure I've created .keystore before etc. So I got message in cmd like - jar signed.
I got picture enter image description here
but then picture enter image description here
I've changed
Parent root =FXMLLoader.load(getClass().getResource("FXMLMain.fxml")); in different way without success.
jar structure
Questions:
How to force it to work?
Why do one need all this difficults with certifications?