虎年软件的第一个问题,IntelliJ 忽然说过期了,要购买~~~
对于穷苦的码农,怎么能花 6w多大洋呢,再说我这个是 2019.1 的老掉牙版本,说好了要陪我天荒地老,才这几年就变心了~~~
另觅他芳吧
找“教程”,下载并安装 (Mac 版本的)
连正常启动界面都看不到,就趴窝了
怎么?官网对我排斥了?一共试用了 6 个版本,从最新的,到近期3大主版本,无一例外都是趴窝的。
找日志,解决问题
基本的日志配置在 idea.vmoption 中:
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
位置就在 用户目录下,然并卵~!
启动错误
日志看不出问题,只能从启动过程着手
进入到 app 目录,
./MacOS/idea
启动过程错误:
2022-03-21 14:15:57.326 idea[58115:165220] allVms required 1.8*,1.8+
2022-03-21 14:15:57.328 idea[58115:165242] Current Directory: /Applications/IntelliJ IDEA 2.app/Contents
2022-03-21 14:15:57.329 idea[58115:165242] Value of IDEA_VM_OPTIONS is (null)
2022-03-21 14:15:57.329 idea[58115:165242] Processing VMOptions file at /Users/*****/Library/Application Support/JetBrains/IntelliJIdea2021.2/idea.vmoptions
2022-03-21 14:15:57.329 idea[58115:165242] Done
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.lang.UrlClassLoader (file:/Applications/IntelliJ%20IDEA%202.app/Contents/lib/util.jar) to field java.lang.ClassLoader.classLoaderValueMap
WARNING: Please consider reporting this to the maintainers of com.intellij.util.lang.UrlClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
====================================================
======= Jetbrains License Crack =======
======= https://zhile.io =======
====================================================
@See: https://zhile.io/2018/08/17/jetbrains-license-server-crack.html
@Version: 3.0.3, @Build Date: 2020-02-27
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_v303.bE.b(bE.java)
at fuck_the_regulations_v303.fi.premain(fi.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
[1] 58115 abort ./MacOS/idea
明白了,载入项 -javaagent 这个有问题,之所有有这个,懂的都懂了,需要移除。
发现 idea.vmoption 中没有这个项啊,而且是新装的怎么能?
解决
用户配置目录:/Users/*****/Library/Application Support/JetBrains/IntelliJIdea2021.2 【各个版本】
app 安装目录: /Applications/IntelliJ IDEA 2.app/Contents/
找到相关配置去除多余加载项,可以正常启动
标签:lang,java,IntelliJ,58115,IntellJ,idea,IDEA,access,instrument From: https://blog.51cto.com/u_2776699/5843267