Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-918

JavaFX support for NetBeans platform

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.0
    • Fix Version/s: 9.0
    • Component/s: javafx - Deployment
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdanard Thierry Danard
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: