Ubuntuは初めてです。現在、Ubuntu 16.04を使用しています。Eclipseをインストールします
私はこのドキュメントに記載されている手順に従いました http://ubuntuhandbook.org/index.php/2016/01/how-to-install-the-latest-Eclipse-in-ubuntu-16-04-15 -10 /
しかし、3番目のステップで次のエラーが表示されます
エラーが発生しました。ログファイルnullを参照してください
端末を介してエラーを確認すると、次のものが得られます
shiv@shiv-HP-Notebook:~/Softwares/Eclipse/eclipse-installer$ ./Eclipse-inst
Java.lang.ExceptionInInitializerError
at org.Eclipse.osgi.storage.Storage.<init>(Storage.Java:101)
at org.Eclipse.osgi.storage.Storage.createStorage(Storage.Java:88)
at org.Eclipse.osgi.internal.framework.EquinoxContainer.<init> (EquinoxContainer.Java:66)
at org.Eclipse.osgi.launch.Equinox.<init>(Equinox.Java:31)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.Java:303)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.Java:239)
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:547)
at org.Eclipse.equinox.launcher.Main.invokeFramework(Main.Java:673)
at org.Eclipse.equinox.launcher.Main.basicRun(Main.Java:610)
at org.Eclipse.equinox.launcher.Main.run(Main.Java:1519)
at org.Eclipse.equinox.launcher.Main.main(Main.Java:1492)
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 @b9afc07
at Java.base/Java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.Java:335)
at Java.base/Java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.Java:278)
at Java.base/Java.lang.reflect.Method.checkCanSetAccessible(Method.Java:196)
at Java.base/Java.lang.reflect.Method.setAccessible(Method.Java:190)
at org.Eclipse.osgi.storage.FrameworkExtensionInstaller.findMethod(FrameworkExtensionInstaller.Java:51)
at org.Eclipse.osgi.storage.FrameworkExtensionInstaller.findMethod(FrameworkExtensionInstaller.Java:58)
at org.Eclipse.osgi.storage.FrameworkExtensionInstaller.findAddURLMethod(FrameworkExtensionInstaller.Java:42)
at org.Eclipse.osgi.storage.FrameworkExtensionInstaller.<clinit>(FrameworkExtensionInstaller.Java:36)
... 14 more
誰が私がどこを間違えているのか教えてください。ありがとうございました
*****************************更新******************** ****************
新しい方法でインストールしようとしました。
Sudo apt-get update
Sudo apt-get install Eclipse
そして、それを起動しようとすると、ダイアログボックスに次のエラーが表示されます
An error has occurred. See the log file
/home/shiv/.Eclipse/org.Eclipse.platform_3.8_155965261/configuration/1488271982409.log.
以下は、ログファイルの詳細です。
!SESSION 2017-02-28 14:16:16.279 -----------------------------------------------
Eclipse.buildId=debbuild
Java.version=9-ea
Java.vendor=Oracle Corporation
BootLoader constants: OS=linux, Arch=x86_64, WS=gtk, NL=en_IN
Command-line arguments: -os linux -ws gtk -Arch x86_64 -clean -initialize
!ENTRY org.Eclipse.osgi 4 0 2017-02-28 14:16:16.693
!MESSAGE error loading hook: org.Eclipse.osgi.internal.baseadaptor.BaseHookConfigurator
!STACK 0
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 @402a079c
at Java.base/Java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.Java:335)
at Java.base/Java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.Java:278)
at Java.base/Java.lang.reflect.Method.checkCanSetAccessible(Method.Java:196)
at Java.base/Java.lang.reflect.Method.setAccessible(Method.Java:190)
at org.Eclipse.osgi.internal.baseadaptor.BaseStorage.findMethod(BaseStorage.Java:174)
at org.Eclipse.osgi.internal.baseadaptor.BaseStorage.findMethod(BaseStorage.Java:181)
at org.Eclipse.osgi.internal.baseadaptor.BaseStorage.findAddURLMethod(BaseStorage.Java:165)
at org.Eclipse.osgi.internal.baseadaptor.BaseStorage.<init>(BaseStorage.Java:135)
at org.Eclipse.osgi.internal.baseadaptor.BaseHookConfigurator.addHooks(BaseHookConfigurator.Java:24)
at org.Eclipse.osgi.baseadaptor.HookRegistry.loadConfigurators(HookRegistry.Java:178)
at org.Eclipse.osgi.baseadaptor.HookRegistry.initialize(HookRegistry.Java:100)
at org.Eclipse.osgi.baseadaptor.BaseAdaptor.<init>(BaseAdaptor.Java:98)
at Java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at Java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.Java:62)
at Java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.Java:45)
at Java.base/Java.lang.reflect.Constructor.newInstance(Constructor.Java:473)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.createAdaptor(EclipseStarter.Java:737)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.Java:258)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.Java:176)
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:547)
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)
at org.Eclipse.equinox.launcher.Main.main(Main.Java:1414)
!ENTRY org.Eclipse.osgi 4 0 2017-02-28 14:16:16.795
!MESSAGE Startup error
!STACK 1
Java.lang.NullPointerException
at org.Eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.Java:123)
at org.Eclipse.osgi.framework.internal.core.Framework.<init>(Framework.Java:192)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.Java:262)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.Java:176)
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:547)
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)
at org.Eclipse.equinox.launcher.Main.main(Main.Java:1414)
一時的な解決策を見つけました。 Javaをバージョン8に変更すると、すべて正常に動作します。以前にバージョン9で試したところ、これらのエラーが見つかりました