目前在用的是2020.1,想升级一下最新的2021.2。官网上下载的最新的,安装。安装完成后,首次启动,发现自动的在下载2020.1在用的插件。恩,很智能嘛。插件下载完后,没动静了。双击图面图标,依然没有动静,+++,真不能夸。这下子完了,启不来了。。。
问题描述:2021.2启动不了,双击桌面图标,没有响应;CMD里输入idea有报错。
进入到安装目录C:\JetBrains\IntelliJ IDEA 2021.2\bin(我自己选的,默认不在这里),打开CMD。输入idea,发现有报错。
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
====================================================
======= Jetbrains License Crack =======
======= https://zhile.io =======
====================================================
@See: https://zhile.io/2018/08/17/jetbrains-license-server-crack.html
@Version: 3.2.0, @Build Date: 2020-04-10
Exception in thread "main" 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 java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at fuck_the_regulations_v320.en.b(en.java)
at fuck_the_regulations_v320.dH.premain(dH.java)
... 6 more
Caused by: java.lang.NullPointerException
... 8 more
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
错误信息一大堆,关键的一句
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
问题1:这个参数不是我添加进去的,哪来的???
打开idea.bat,在代码最后处,加上输出
#这里是我加入的
echo %CLASS_PATH%
echo %ACC%
echo %IDE_PROPERTIES_PROPERTY%
#下面的这些是原始的
"%JAVA_EXE%" ^
-cp "%CLASS_PATH%" ^
%ACC% ^
"-XX:ErrorFile=%USERPROFILE%\java_error_in_idea_%%p.log" ^
"-XX:HeapDumpPath=%USERPROFILE%\java_error_in_idea.hprof" ^
-Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.vendor.name=JetBrains -Didea.paths.selector=IntelliJIdea2021.2 -Didea.jre.check=true ^
%IDE_PROPERTIES_PROPERTY% ^
com.intellij.idea.Main ^
%*
?重新执行idea.bat(在CMD里哦),发现如下输出
-Djb.vmOptionsFile="C:\Users\cpp\AppData\Roaming\JetBrains\IntelliJIdea2021.2\idea64.exe.vmoptions" "-Xms128m" "-Xmx1012m" "-XX:ReservedCodeCacheSize=240m" "-XX:+UseConcMarkSweepGC" "-XX:SoftRefLRUPolicyMSPerMB=50" "-ea" "-XX:CICompilerCount=2" "-Dsun.io.useCanonPrefixCache=false" "-Djdk.http.auth.tunneling.disabledSchemes=""" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:-OmitStackTraceInFastThrow" "-Djdk.attach.allowAttachSelf=true" "-Dkotlinx.coroutines.debug=off" "-Djdk.module.illegalAccess.silent=true" "-javaagent:C:\Users\Public\.jetbrains\jetbrains-agent-v3.2.0.de72.619"
OpenJDK 64-B
看到 -javaagent?这个参数了吗。近一步发现这个?-javaagent?是在%ACC%变量里。
下一步,查找 %ACC%,发现在idea.bat里,并没有直接对其设置值,猜想一定是调用了另外的bat文件,对其设置值的,按照这个思路,append.bat,进入了视线。在约在idea.bat里,114行,加上输出
echo aaaaaaa\%VM_OPTIONS_FILE%
FOR /F "eol=# usebackq delims=" %%i IN ("%VM_OPTIONS_FILE%") DO CALL "%IDE_BIN_DIR%\append.bat" "%%i"
IF NOT "%USER_VM_OPTIONS_FILE%" == "" (
FOR /F "eol=# usebackq delims=" %%i IN ("%USER_VM_OPTIONS_FILE%") DO CALL "%IDE_BIN_DIR%\append.bat" "%%i"
)
)
发现有使用到?
C:\Users\cpp\AppData\Roaming\JetBrains\IntelliJIdea2021.2\idea64.exe.vmoptions?这个文件,记事本直接输入该文件,还真有这个文件。内容如下所示:
-Xms128m
-Xmx1012m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-javaagent:C:\Users\Public\.jetbrains\jetbrains-agent-v3.2.0.de72.619
好了,看到?-javaagent:C:\Users\Public\.jetbrains\jetbrains-agent-v3.2.0.de72.619? 这一行,是不是定义到问题了,赶紧删除这一行,再次输入 idea,久违的启动画面出现了。
最后,终结一下,不是ieda做的不好。而是目前在用的2020.1,破解了(为什么破解你的懂的)。然后安装新版后,由于IEDA太智能了,智能的太过头了,把现有的启运参数也都复制过去了。又因为最新的IEDA,不兼容破解程序 C:\Users\Public\.jetbrains\jetbrains-agent-v3.2.0.de72.619了,所以报错了,所以JVM结束了,所有没有启动画面了,所以就凉凉了。
另外,有尝试过,报错不是提向了?:C:\Users\Public\.jetbrains\jetbrains-agent-v3.2.0.de72.619这个文件吗,那么我删除这个文件会怎样呢?事实证明,如下所示:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error opening zip file or JAR manifest missing : C:\Users\Public\.jetbrains\jetbrains-agent-v3.2.0.de72.619
Error occurred during initialization of VM
agent library failed to init: instrument
DEBUG流程:idea.bat -> append.bat -->?C:\Users\cpp\AppData\Roaming\JetBrains\IntelliJIdea2021.2\idea64.exe.vmoptions
最后,写上遇到的错误
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
?==================================================== ?======= ? ? ? ?Jetbrains License Crack ? ? ? ======= ?======= ? ? ? ? ? https://zhile.io ? ? ? ? ? ======= ?====================================================
?@See: https://zhile.io/2018/08/17/jetbrains-license-server-crack.html
?@Version: 3.2.0, @Build Date: 2020-04-10
Exception in thread "main" 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 java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513) ? ? ? ? at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525) Caused by: java.lang.RuntimeException: java.lang.NullPointerException ? ? ? ? at fuck_the_regulations_v320.en.b(en.java) ? ? ? ? at fuck_the_regulations_v320.dH.premain(dH.java) ? ? ? ? ... 6 more Caused by: java.lang.NullPointerException ? ? ? ? ... 8 more *** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422 FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
|