简体   繁体   English

启动 Inteliji IDEA 会出错。 我该如何解决?

[英]Launching Inteliji IDEA gives an error. How can I fix that?

I think it has something to do with the idea.exe.vmoptions.我认为这与idea.exe.vmoptions有关。

错误

Here is what is inside the vmoptions file这是 vmoptions 文件中的内容

-server
-Xms128m
-Xmx512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

Do I need to remove or add something to this file?我需要在这个文件中删除或添加一些东西吗?

For some reason IntelliJ is not able to install its own version of java in your computer.由于某种原因,IntelliJ 无法在您的计算机中安装自己的 java 版本。 It tries to do it in E:\Programs\IntelliJ... Check for right permissions or harddisk space.它试图在 E:\Programs\IntelliJ... 检查正确的权限或硬盘空间。

The messege tells you that IntelliJ installation of its own java is not mandatory, because if you have your own version you can make IntelliJ run on it.该消息告诉您,IntelliJ 安装自己的 java 不是强制性的,因为如果您有自己的版本,您可以让 IntelliJ 在其上运行。 To choose this second option do what message says.要选择第二个选项,请按照消息说明进行操作。

It is not related to vmoptions file.它与 vmoptions 文件无关。 See Selecting the JDK version the IDE will run under for the sequence of variables IDE checks when searchig for JDK to run under.请参阅选择 IDE 将在其下运行的 JDK 版本,了解IDE 在搜索 JDK 以在其下运行时检查的变量序列。 You can define the IDEA_JDK_64 with the path pointing to the 64bit JDK installation.您可以使用指向 64 位 JDK 安装的路径来定义IDEA_JDK_64 By default the IDE uses the bundled JDK so you can set the bundled JDK path for it.默认情况下,IDE 使用捆绑的 JDK,因此您可以为其设置捆绑的 JDK 路径。 Just make sure the installation home has the jre64 directory which should be present by default unless you've explicitly downloaded distribution without bundled jre.只需确保安装主目录有jre64目录,除非您明确下载了没有捆绑 jre 的发行版,否则默认情况下应该存在该目录。

Uninstalling and reinstalling fixed the problem卸载并重新安装解决了问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复“任务 'compileJava' 执行失败”错误。 (使用 Intellij Idea 和 Gradle) - How do I fix “Execution failed for task 'compileJava'” error. (Using Intellij Idea and Gradle) PagerAdapter 是抽象的; 无法实例化错误。 我该如何解决? - PagerAdapter is abstract; cannot be instantiated error. How can i fix it? 启动我的程序时出错,我该如何解决? - Error launching my program, how can i fix it? 这段代码给我一个不兼容的类型错误。 它说它需要一个扫描器,但是找到了字符串。 我不明白该如何解决 - This code gives me an incompatible types error. It says it requires a Scanner but found String. I don't understnd how I can fix it 收到“查询未返回唯一结果”错误。 我该如何解决? - Getting an "query did not return a unique result" error. How can I fix it? 我输入了“0.5, 0.8”,但它给出了错误。 如何修复 java - I entered such as “0.5 , 0.8 ” but it give error. how to fix in java 抛出错误。 我怎样才能解决这个问题? 我尝试了很多事情,但是我是新手,逻辑超出了我的范围 - Throw error. How can I fix this? I've tried many things, but I am new to it and the logic is a little beyond me 泛型编译错误。 无法修复 - Generics compliation error. Can't fix it 如何修复错误加载项目:无法在 Intellij IDEA 中加载 facet Spring? - How can I fix Error Loading Project: Cannot load facet Spring in Intellij IDEA? 我对 INTELIJI IDEA 有疑问。 我的课程未被 IDE 识别为课程 - I have a problem with INTELIJI IDEA. My classes are not recognized as classes by the IDE
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM