not able to open jmc for java version jdk1.8.0_191.jdk

邮差的信 提交于 2019-12-11 06:33:52

问题


I have a mac system. Whenever i try to open java JMC, it doesn't open. I can just see maximise, minimise and close buttons for the dialog box. The jdk version im using is jdk1.8.0_191.jdk.


回答1:


This is unfortunately a bug that we recently discovered, caused by incompatibilities between old Eclipse/SWT versions and new fixes done in JDK 8u152 (backported from JDK 9).

Workaround is to run older version of JDK 8, or the latest version of JDK 7 (which includes the same version of JMC). JDK 9 also works, with the new JMC 6 included.

(Oracle Internal) bug reference: JMC-5139

or

There's a workaround for this, as mentioned by @jwatkins in a comment.

Download the swt cocoa jar from here.
Go to JDKs jmc path (You can find this path by right-clicking on jmc icon in the dock -> Options -> Show in Finder, Then right click on App -> Show Package Contents).

For example:  cd
/Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/lib/missioncontrol
Back up exisiting jar using sudo mv
plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar
../

Copy downloaded zip's swt.jar using sudo cp ~/Downloads/swt.jar
plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar
Restart jmc

it works for 1.8.0_171



来源:https://stackoverflow.com/questions/53390640/not-able-to-open-jmc-for-java-version-jdk1-8-0-191-jdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!