新安装的IDEA 2019.2---没法启动 Start Failed

 

Internal error. Please report to http://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.MainRunner$StartupAbortedException: java.lang.reflect.InvocationTargetException
    at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:61)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.reflect.InvocationTargetException
    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:566)
    at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:58)
    ... 1 more
Caused by: java.lang.NoClassDefFoundError: com/rover12421/crack/jetbrains/v2/Util
    at com.intellij.ide.a.p.(p.java:17)
    at com.intellij.ide.a.o.a(o.java)
    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:566)
    at com.intellij.idea.MainImpl.a(MainImpl.java:178)
    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:566)
    at com.intellij.idea.MainImpl.access$000(MainImpl.java:34)
    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:566)
    at com.intellij.idea.MainImpl$1.start(MainImpl.java:91)
    at com.intellij.idea.StartupUtil.lambda$prepareAndStart$7(StartupUtil.java:237)
    at com.intellij.util.ui.EdtInvocationManager.executeWithCustomManager(EdtInvocationManager.java:49)
    at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:232)
    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:566)
    at com.intellij.idea.MainImpl.start(MainImpl.java:46)
    ... 6 more
Caused by: java.lang.ClassNotFoundException: com.rover12421.crack.jetbrains.v2.Util
    at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:282)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 31 more

错误原因是以前低版本idea使用了 JetbrainsCrack类的破解jar包,在安装的新版本idea时,继承了旧版本的idea配置,导致上述错误。

解决方法:

在 C:\Users\hi\.IntelliJIdea2019.2\config下(.IntelliJIdea2019.2---新版本idea):修改.config文件(idea.exe.vmoptions或者idea64.exe.vmoptions)

# custom IntelliJ IDEA VM options

-Xms128m
-Xmx1463m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
//-javaagent:E:\idea\idea\bin\JetbrainsCrack-3.1-release-enc.jar----删除继承的旧版本jar路径
-javaagent:E:\idea\IntelliJ IDEA 2019.2\bin\jetbrains-agent.jar----添加新的

重启。

你可能感兴趣的:(其他)