提问者:小点点

无法运行IntelliJ IDEACE12与Ubuntu OracleJava8


我正在使用Ubuntu 13.04和OracleJava8。

我已经设置了JAVA_HOMEPATH变量。

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

darren@ubuntu:~$ /opt/intellij-idea-ce/bin/idea.sh
Java 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.0
Failed to clear URL cache
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 more
ERROR: 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 more
ERROR: 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"

共2个答案

匿名用户

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

$ ps -ef | grep idea

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

匿名用户

这是一个已知问题,JDK8删除了IDEA正在使用的方法。它已在IDEA 12.1.5中修复。

我们建议使用支持和发布的JDK版本来避免问题,如JDK1.7。