@chihiro-nayuki

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Eclipse4.4が起動しない

解決したいこと

突然Eclipse4.4が起動しなくなりました。

OS:Windows 11 Pro
OpenJDK:openjdk version "17.0.2"
eclipse:eclipse4.4

昨日までは動いていました。
今日になって実行しようとすると起動せず、「An error has occurred. See the log file null.」というメッセージが出ます。
昨日と今日で変わったことはWindows Updateがあったくらいです。
コマンドプロンプトから実行した際のエラーメッセージを添付します。

発生している問題・エラー

D:\dev\java\eclipse4.4>.\eclipsec.exe -clean
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
INFO 17:20:28.918 [main] (PropertySet) load 0.001 秒 - 14 エントリー config.ini
バイトコード変換に失敗しました。org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar/org/eclipse/equinox/launcher/Main javassist.CannotCompileException: [source error] no such class: jp.sourceforge.mergedoc.pleiades.aspect.LauncherEclipseTransformer javassist.CtBehavior.insertBefore(CtBehavior.java:741)
javassist.CannotCompileException: [source error] no such class: jp.sourceforge.mergedoc.pleiades.aspect.LauncherEclipseTransformer
java.lang.ExceptionInInitializerError
at org.eclipse.osgi.storage.Storage.(Storage.java:97)
at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:84)
at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:75)
at org.eclipse.osgi.launch.Equinox.(Equinox.java:31)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:295)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:231)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @7f0eb4b4
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
at org.eclipse.osgi.storage.FrameworkExtensionInstaller.findMethod(FrameworkExtensionInstaller.java:52)
at org.eclipse.osgi.storage.FrameworkExtensionInstaller.findMethod(FrameworkExtensionInstaller.java:59)
at org.eclipse.osgi.storage.FrameworkExtensionInstaller.findAddURLMethod(FrameworkExtensionInstaller.java:43)
at org.eclipse.osgi.storage.FrameworkExtensionInstaller.(FrameworkExtensionInstaller.java:37)
... 13 more

該当するソースコード

特になし

自分で試したこと

Googleで「openjdk 64 bit server vm warning」で検索しましたが、同じ現象はありませんでした。

0 likes

1Answer

Comments

  1. @chihiro-nayuki

    Questioner

    回答ありがとうございます。
    教えていただいた記事を読んでみます。

  2. @chihiro-nayuki

    Questioner

    記事にあったようにeclipse.iniに
    --illegal-access=warn
    --add-opens java.base/java.lang=ALL-UNNAMED
    を追加しましたが、やはりエラーになりました。
    下記のエラーメッセージが出ました。

    D:\dev\java\eclipse4.4>.\eclipsec.exe -clean
    OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0
    INFO 13:46:35.702 [main] (PropertySet) load 0.001 秒 - 14 エントリー config.ini
    バイトコード変換に失敗しました。org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar/org/eclipse/equinox/launcher/Main javassist.CannotCompileException: [source error] no such class: jp.sourceforge.mergedoc.pleiades.aspect.LauncherEclipseTransformer javassist.CtBehavior.insertBefore(CtBehavior.java:741)
    javassist.CannotCompileException: [source error] no such class: jp.sourceforge.mergedoc.pleiades.aspect.LauncherEclipseTransformer
    java.lang.ExceptionInInitializerError
    at org.eclipse.osgi.storage.Storage.(Storage.java:97)
    at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:84)
    at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:75)
    at org.eclipse.osgi.launch.Equinox.(Equinox.java:31)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:295)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:231)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @7e07db1f
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
    at org.eclipse.osgi.storage.FrameworkExtensionInstaller.findMethod(FrameworkExtensionInstaller.java:52)
    at org.eclipse.osgi.storage.FrameworkExtensionInstaller.findMethod(FrameworkExtensionInstaller.java:59)
    at org.eclipse.osgi.storage.FrameworkExtensionInstaller.findAddURLMethod(FrameworkExtensionInstaller.java:43)
    at org.eclipse.osgi.storage.FrameworkExtensionInstaller.(FrameworkExtensionInstaller.java:37)
    ... 13 more

Your answer might help someone💌