Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDK Mission Control app is not launching in Mac system

I have installed jmc-8.2.1_osx-aarch64 in my mac OS. Java version used is 11.0.14. I have also installed eclipse in my machine. When I am trying to launch the JDK Mission Control app, its erroring out as , "The JVM shared library “/Library/Java/JavaVirtualMachines/jdk-11.0.14.jdk/Contents/Home/bin/../lib/server/libjvm.dylib” does not contain the JNI_CreateJavaVM symbol."

Please let me know how to resolve this issue.

like image 327
Eli Johnes Avatar asked Nov 16 '25 12:11

Eli Johnes


1 Answers

There are several solutions described here.

In my case I got this error:

The JVM shared library "/System/Library/Frameworks/JavaVM.framework" does not contain the JNI_CreateJavaVM symbol.

In case it helps, in my case the solution that worked was to edit /Applications/JDK\ Mission\ Control.app/Contents/Eclipse/jmc.ini and add following line to it:

-vm 
/Library/Java/jdk-21.0.1.jdk/Contents/Home/bin

change the path as necessary [1].

IMPORTANT: there needs to be a line break between -vm and the path.

Some more notes: In my case, I do NOT have Eclipse installed. There are two ways you can run JMC:

  1. standalone without eclipse
  2. as eclipse plugin

This solution applies in case of option 1. Not sure about option 2. What made this hard to debug is that double-clicking on JMC application did nothing. It did not even display an error. When I launched the program from terminal by running:

/Applications/JDK\ Mission\ Control.app/Contents/MacOS/jmc

only then did I see an error popup saying: "The JVM shared library "/System/Library/Frameworks/JavaVM.framework" does not contain the JNI_CreateJavaVM symbol."

TIP: I ran into exact same error with Eclipse Memory Analyzer. The solution again was to edit an .ini file - /Applications/MemoryAnalyzer.app/Contents/Eclipse/MemoryAnalyzer.ini this time but with same fix.

like image 197
morpheus Avatar answered Nov 18 '25 06:11

morpheus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!