IDEA启动报错Failed to create JVM. JVM path的解决办法

今天修改了 IntelliJ IDEA 2023.1 的配置文件 idea64.exe.vmoptions 后启动报错:

if you already hava a JDK installed, define a JAVA_HOME variable 
in Computer > Systen Properties > System Settings >
Environment Variables.
 
Failed to create JVM. JVM path:D:\ideaIU2023.1\IntelliJ IDEA 2023.1\jbr

idea64.exe.vmoptions 配置如下:

-Xms128m
-Xmx2048m
-XX:ReservedCodeCacheSize=2048m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+IgnoreUnrecognizedVMOptions
-XX:CompileCommand=exclude,com/intellij/openapi/vfs/impl/FilePartNodeRoot,trieDescend
-ea
-Dsun.io.useCanonCaches=false
-Dsun.java2d.metal=true
-Djbr.catch.SIGABRT=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutin

你可能感兴趣的:(IDEA,intellij-idea,jvm,java)