You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Thierry Danard (JIRA)" <ji...@apache.org> on 2018/06/04 18:59:00 UTC

[jira] [Created] (NETBEANS-918) JavaFX support for NetBeans platform

Thierry Danard created NETBEANS-918:
---------------------------------------

             Summary: JavaFX support for NetBeans platform
                 Key: NETBEANS-918
                 URL: https://issues.apache.org/jira/browse/NETBEANS-918
             Project: NetBeans
          Issue Type: Bug
          Components: javafx - Deployment
    Affects Versions: 9.0
            Reporter: Thierry Danard
             Fix For: 9.0


I use JavaFX to display HTML content (the javafx.scene.web.WebView component).

With NetBeans 8.1 and Java 8, I had this dependency to make sure JavaFX gets loaded at startup. 

 
                <dependency>
                    <code-name-base>org.netbeans.libs.javafx</code-name-base>
                    <build-prerequisite/>
                    <compile-dependency/>
                    <run-dependency>
                        <specification-version>2.6.1</specification-version>
                    </run-dependency>
                </dependency> 
 
My app would work OK without it when running from the NetBeans IDE, but was unable to capture link events when running outside of the NetBeans IDE. Adding org.netbeans.libs.javafx fixed the issue in NetBeans 8.1 and Java 8.
 
When compiling the same code with NetBeans 9-rc1  and Java 9, I get this message from the NetBeans IDE:
 
The JARs [D:\Users\thierry.danard\Downloads\incubating-netbeans-java-9.0-rc1-bin\netbeans\platform\modules\org-netbeans-libs-javafx.jar, C:\Program Files\Java\jdk-9.0.1\lib\ext\jfxrt.jar] contain no classes in the supposed public packages javafx.animation.*, javafx.application.*, javafx.beans.*, javafx.beans.binding.*, javafx.beans.property.*, javafx.beans.property.adapter.*, javafx.beans.value.*, javafx.collections.*, javafx.concurrent.*, javafx.css.*, javafx.embed.swing.*, javafx.event.*, javafx.fxml.*, javafx.geometry.*, javafx.scene.*, javafx.scene.canvas.*, javafx.scene.chart.*, javafx.scene.control.*, javafx.scene.control.cell.*, javafx.scene.effect.*, javafx.scene.image.*, javafx.scene.input.*, javafx.scene.layout.*, javafx.scene.media.*, javafx.scene.paint.*, javafx.scene.shape.*, javafx.scene.text.*, javafx.scene.transform.*, javafx.scene.web.*, javafx.stage.*, javafx.util.*, javafx.util.converter.*, netscape.javascript.*, com.sun.javafx.scene.web.* and so cannot be compiled against
 
This message goes away If I remove org.netbeans.libs.javafx from the dependencies. But then running outside of the NetBeans IDE, I get this error:
 
java.lang.NullPointerException
 at javafx.graphics/com.sun.prism.d3d.D3DPipeline.getAdapterOrdinal(D3DPipeline.java:205)
 at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.assignScreensAdapters(QuantumToolkit.java:685)
 at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(QuantumToolkit.java:312)
 at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(QuantumToolkit.java:257)
[catch] at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Application.java:155)
 at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
 at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:175)
 at java.base/java.lang.Thread.run(Thread.java:844)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists