Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 启动 Idea 报错 if you already hava a 64-bit JDK ... 以及 failed to create jvm... #6

Closed
hqweay opened this issue Aug 23, 2019 · 0 comments

Comments

@hqweay
Copy link
Owner

hqweay commented Aug 23, 2019

报错

在这里插入图片描述

解决

看到这个报错,第一时间搜索 jdk 的解决方案,然后重新配置了下环境变量。

无效。

然后注意到下面的 JVM 错误。

突然想起昨天用 Idea 时设置过 JVM 的参数,然后搜索了下。

遇到网友们的一些情况。

一,破解报错

可能是破解时修改 idea[64].exe.vmoptions 文件,导致错误。

一般有两种情况:参数写错,或者用记事本编辑时,保存格式出错。

所以 Idea 启动时会加载这里的参数,那款破解插件的加载方式就是通过这里配置。

二,用户配置文件出错了

我自己的问题应该是昨天点击 Help -> Edit Custom VM Options,然后添加参数时出了某种问题。

具体是啥我忘了,解决完了才来写这个的...

解决方式 :删除 C:\Users\用户名\.IntelliJIdea2019.2\config 下的 vmoption 文件。

config 下的 vmoption 和 Idea 安装目录下的 vmoption 的功能是一样的,不过 config 下是用户配置,Idea 安装目录下的是默认配置。

同理,如果你把其他的配置玩坏了,也可以删除这个用户配置,Idea 重新启动时就会去加载默认配置。

@hqweay hqweay closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant