记录⼀次idea2021.3启动不了
订阅专栏
⽬前在⽤的是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      =======
=======          zhile.io          =======
====================================================
@See: zhile.io/2018/08/17/jetbrains-license-server-crack.html
@Version: 3.2.0, @Build Date: 2020-04-10
Exception in thread "main" flect.InvocationTargetException
at java.base/flect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/flect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/flect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/flect.Method.invoke(Method.java:566)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.j
ava:513)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at fuck_the_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.vmoptions" "-Xms128m" "-Xmx1012m" "-XX:ReservedCodeCacheSize=240m" "-XX:+UseConcMarkSweepGC" "-XX:SoftRefLRUPolicyMSPerMB=50" 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.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
-utines.debug=off
-dule.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.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      =======
=======          zhile.io          =======
====================================================
@See: zhile.io/2018/08/17/jetbrains-license-server-crack.html
@Version: 3.2.0, @Build Date: 2020-04-10
Exception in thread "main" flect.InvocationTargetException
at java.base/flect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/flect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/flect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/flect.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_b(en.java)
at fuck_the_regulations_v320.dH.premain(dH.java)
... 6 more
Caused by: java.lang.NullPointerException
idea debug
.
.. 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
————————————————
版权声明:本⽂为CSDN博主「伤脑脑」的原创⽂章,遵循CC 4.0 BY-SA版权协议,转载请附上原⽂出处链接及本声明。
原⽂链接:blog.csdn/hnzmdpan/article/details/119845850

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。