gpt4 book ai didi

java - 无法使用 Ubuntu Oracle Java 8 运行 IntelliJ IDEA CE 12

转载 作者:IT王子 更新时间:2023-10-29 00:49:58 27 4
gpt4 key购买 nike

我正在使用 Ubuntu 13.04 和 Oracle Java 8。

我已经设置了 JAVA_HOMEPATH 变量。

这是尝试运行 IntelliJ 的终端输出:

darren@ubuntu:~$ /opt/intellij-idea-ce/bin/idea.shJava HotSpot(TM) 64-Bit Server VM (build 25.0-b42, mixed mode)Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0Failed to clear URL cachejava.lang.reflect.InvocationTargetException    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:491)    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:190)    at java.lang.Thread.run(Thread.java:724)Caused by: java.lang.NoSuchMethodError: sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class;    at com.intellij.openapi.util.IconLoader.getIcon(IconLoader.java:116)    at com.intellij.openapi.application.impl.ApplicationInfoImpl.readExternal(ApplicationInfoImpl.java:491)    at com.intellij.openapi.application.impl.ApplicationInfoImpl.getShadowInstance(ApplicationInfoImpl.java:426)    at com.intellij.ui.AppUIUtil.getAppIconImages(AppUIUtil.java:66)    at com.intellij.ui.AppUIUtil.updateWindowIcon(AppUIUtil.java:49)    at com.intellij.idea.MainImpl.start(MainImpl.java:46)    ... 6 moreERROR: Error while accessing com.intellij.idea.MainImpl.start with arguments: []java.lang.reflect.InvocationTargetException    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:491)    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:190)    at java.lang.Thread.run(Thread.java:724)Caused by: java.lang.NoSuchMethodError: sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class;    at com.intellij.openapi.util.IconLoader.getIcon(IconLoader.java:116)    at com.intellij.openapi.application.impl.ApplicationInfoImpl.readExternal(ApplicationInfoImpl.java:491)    at com.intellij.openapi.application.impl.ApplicationInfoImpl.getShadowInstance(ApplicationInfoImpl.java:426)    at com.intellij.ui.AppUIUtil.getAppIconImages(AppUIUtil.java:66)    at com.intellij.ui.AppUIUtil.updateWindowIcon(AppUIUtil.java:49)    at com.intellij.idea.MainImpl.start(MainImpl.java:46)    ... 6 moreERROR: Error while accessing com.intellij.idea.MainImpl.start with arguments: []java.lang.AssertionError: Error while accessing com.intellij.idea.MainImpl.start with arguments: []    at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:55)    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:65)    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:194)    at java.lang.Thread.run(Thread.java:724)Exception: java.lang.AssertionError thrown from the UncaughtExceptionHandler in thread "Idea Main Thread 12.1#IC-129.161, eap:false"

最佳答案

您可能已经运行了一个 IDEA 实例。继续检查:

$ ps -ef | grep idea

使用 killkill -9 停止该实例,然后尝试重新启动它。

关于java - 无法使用 Ubuntu Oracle Java 8 运行 IntelliJ IDEA CE 12,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18276723/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com