Idea安装后,默认为JDK11,切换JDK13编译报错
报错内容:
FATAL ERROR in native method: processing of -javaagent failed, appending to system class pathFATAL ERROR in native method: processing of -javaagent failed, appending to system class path failed
Unexpected error (103)returned by AddToSystemClassLoaderSearch
Uanble to add C:\Users\ 乱码.IntelliJldea2019.3\system\captureAgent\ debuge-agent.jar to system class path - the system class loader does not …
原因:由于当前用户名为中文。
解决方案:一,将用户名修改为英文(这个很麻烦)
二,也就是我用的方法,将idea.properties,将以下四个路径改为了自己创建的纯英文路径,并把用户文件下的.idea的缓存文件剪切到对应的纯英文路径下,这个可以参考如何把C盘用户下的.IntelliJIdea转移到其他盘
之后重启IDEA
ps:电脑用户名为中文,对使用的编程软件有一定影响
所以电脑用户名最好设置为英文。
这个用户名的修改应该也是个大坑,找了好多资料,今后有机会试试
所以这个用户名应该是买新电脑之后输入了中文账户导致直接创建了中文用户
感觉之后用这台电脑还会遇到用户名为中文导致的坑。