You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/12/30 09:45:19 UTC

[GitHub] [netbeans] flozano opened a new issue, #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicion

flozano opened a new issue, #5167:
URL: https://github.com/apache/netbeans/issues/5167

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   Fresh install of NB 16
   
   When creating a new web project:
   <img width="737" alt="image" src="https://user-images.githubusercontent.com/1159291/210056266-67d9b1df-3528-4104-8e10-9323e7e28afd.png">
   
   after clicking "Next", I get:
   <img width="738" alt="image" src="https://user-images.githubusercontent.com/1159291/210056303-a7df334e-7e83-4fad-99de-350a36944603.png">
   
   which contains an exception:
   
   ```
   java.lang.RuntimeException: No toolkit found
   	at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)
   	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)
   	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
   	at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:225)
   [catch] at java.base/java.lang.Thread.run(Thread.java:833)
   Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: Can't load library: /Users/flozano/.openjfx/cache/17/libprism_es2.dylib
   java.lang.UnsatisfiedLinkError: Can't load library: /Users/flozano/.openjfx/cache/17/libprism_es2.dylib
   	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
   	at java.base/java.lang.Runtime.load0(Runtime.java:755)
   	at java.base/java.lang.System.load(System.java:1953)
   	at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:217)
   	at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:197)
   	at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:138)
   	at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:54)
   	at com.sun.prism.es2.ES2Pipeline.lambda$static$0(ES2Pipeline.java:63)
   	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
   	at com.sun.prism.es2.ES2Pipeline.<clinit>(ES2Pipeline.java:52)
   	at java.base/java.lang.Class.forName0(Native Method)
   	at java.base/java.lang.Class.forName(Class.java:375)
   	at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218)
   	at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:92)
   	at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
   	at java.base/java.lang.Thread.run(Thread.java:833)
   ```
   
   
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   macos 12.6 monterrey - apple silicion
   
   ### JDK
   
   17.0.5 from Azul
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] flozano commented on issue #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicon

Posted by GitBox <gi...@apache.org>.
flozano commented on issue #5167:
URL: https://github.com/apache/netbeans/issues/5167#issuecomment-1367868021

   ```
   /Applications/NetBeans/Apache NetBeans 16.app/Contents/MacOS ❯ file netbeans
   netbeans: Mach-O 64-bit executable x86_64
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] neilcsmith-net commented on issue #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicon

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #5167:
URL: https://github.com/apache/netbeans/issues/5167#issuecomment-1586984084

   This should be fixed in NB19 by #6028 I believe.
   
   > When creating a new web project:
   
   Also note that `Java Frontend Application` may not be what you're looking for here.  It's a badly labelled project type IMO.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on issue #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicon

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #5167:
URL: https://github.com/apache/netbeans/issues/5167#issuecomment-1591957505

   > Also note that Java Frontend Application may not be what you're looking for here. It's a badly labelled project type IMO.
   
   @neilcsmith-net I agree. We should fix this to make it less generic sounding and tell what project type it is.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] flozano commented on issue #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicon

Posted by "flozano (via GitHub)" <gi...@apache.org>.
flozano commented on issue #5167:
URL: https://github.com/apache/netbeans/issues/5167#issuecomment-1586990556

   yeah, pretty misleading name... I was just exploring the options for curiosity and found this issue, but not interested in the "java(script) frontend application" type itself 👍 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] flozano commented on issue #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicon

Posted by GitBox <gi...@apache.org>.
flozano commented on issue #5167:
URL: https://github.com/apache/netbeans/issues/5167#issuecomment-1367925418

   if I switch to a x86_64 JDK and use rosetta2, it works well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] gwinstanley commented on issue #5167: openjfx exception when creating new project on macos 12.6 - Apple Silicon

Posted by "gwinstanley (via GitHub)" <gi...@apache.org>.
gwinstanley commented on issue #5167:
URL: https://github.com/apache/netbeans/issues/5167#issuecomment-1586929207

   I've just encountered something very similar while building a Gradle project. My guess is the dependency classifier for the JavaFX resources is still set to be **mac**, when on Apple Silicon it should be **mac-aarch64**. While I don't use the JavaFX Gradle plugin, its source for [JavaFXPlatform.java](https://github.com/openjfx/javafx-gradle-plugin/blob/master/src/main/java/org/openjfx/gradle/JavaFXPlatform.java) shows this clearly.
   
   I'm fairly certain resolving these JavaFX dependencies in the new project module would resolve this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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