简体   繁体   中英

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

I think it has something to do with the idea.exe.vmoptions.

错误

Here is what is inside the vmoptions file

-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. It tries to do it in E:\Programs\IntelliJ... Check for right permissions or harddisk space.

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. To choose this second option do what message says.

It is not related to vmoptions file. See Selecting the JDK version the IDE will run under for the sequence of variables IDE checks when searchig for JDK to run under. You can define the IDEA_JDK_64 with the path pointing to the 64bit JDK installation. By default the IDE uses the bundled JDK so you can set the bundled JDK path for it. 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.

Uninstalling and reinstalling fixed the problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM