santiontanon opened a new issue, #4524: URL: https://github.com/apache/netbeans/issues/4524
### Apache NetBeans version Apache NetBeans 14 ### What happened Profiler cannot start on Apple Silicon. The first time it tries to start, it needs to run a calibration. For this, the console displays that Netbeans is running the following command: ```/Library/Java/JavaVirtualMachines/jdk-18.0.2.1.jdk/Contents/Home/bin/java -agentpath:/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib -Xbootclasspath/a:/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server.jar:/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/jfluid-server-15.jar org.netbeans.lib.profiler.server.ProfilerServer /Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac 5141 10 ____Profiler+Calibration+Run____``` And hungs there forever. Trying to run that command manually on the command line reveals that the command fails with the following error: ```Error occurred during initialization of VM Could not find agent library /Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib in absolute path, with error: dlopen(/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib, 0x0001): tried: '/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib' (fat file, but missing compatible architecture (have 'unknown,i386,unknown,x86_64', need 'arm64e')), '/usr/lib/libprofilerinterface.jnilib' (no such file)``` So, it seems that the "libprofilerinterface.jnilib" file is only provided for intel processors, but not for Arm, and hence it cannot be run on Apple Silicon. I wonder if there is any way to generate an Apple Silicon version of this file. ### How to reproduce Just try to profile any Java project, and this will occur. ### Did this work correctly in an earlier version? No / Don't know ### Operating System MacOS 12.2 Monterey on Apple Silicon ### JDK java 18.0.2.1 2022-08-18 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else This problem occurs every time. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
