即使在更新eclipse.ini之后,Android设备监视器也未在MAC OS X上运行JDK 9

时间:2017-09-24 13:43:47

标签: java eclipse java-9 android-device-monitor

现在JDK 9正式发布,我已经升级了Mac OSX以运行Java SE Development Kit 9.

Android设备监视器(/Library/Android/sdk/tools/monitor)不再有效。记录在这里:

!ENTRY org.eclipse.osgi 4 0 2017-09-24 13:30:55.822
`enter code here`!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

我已经能够通过添加

来修复Eclipse Oxygen的类似问题
--add-modules=java.se.ee
eclipse.ini中的

,正如本答案中的解释 Neon: how to run on jdk9?。这修复了100%的Eclipse问题,所以现在我可以毫无问题地运行eclipse,但Android设备监视器仍未运行。

我已经尝试过解决方案"Unable to acquire application service" error while launching Eclipse但没有成功。

还有什么必须配置吗?

0 个答案:

没有答案