Problem analysis of failed to create JVM started by ideago

Time:2021-2-18

[content]:
Problem situation

What did you do before it appeared

Before the error, an error VM parameter was added through this function:- agent:xxx.jar

What should I do?

Baidu has made a circle, all of which are deleted:Disk C, user, user name, intellijidea2019.3, config, idea64 exe.vmoptions

However, I do not have this document here. I can’t understand it. I’ve tried various ways, such as reloading, but I still can’t use it.

Thinking about it:

1. This is obviously a configuration file under a user, so it must be the configuration file used at the user level. It is useless to change the configuration file under idea.

2. Obviously, it’s because I’ve modified the VM parameters. Some schemes on the Internet delete the configuration files of users, which must have something to do with the configuration files. Just find out.

3. There is this bat file in the go installation directory, which is obviously used to start idea go

4. Open the bat and add parameters to print.

@ECHO OFF
 
::----------------------------------------------------------------------
:: GoLand startup script.
::----------------------------------------------------------------------
::......
: obviously, this is a script to start idea, omitting part of the script
::......
:: ---------------------------------------------------------------------
:: Run the IDE.
:: ---------------------------------------------------------------------
SET OLD_PATH=%PATH%
SET PATH=%IDE_BIN_DIR%;%PATH%
: here is my modified part. Print out the startup parameters
echo %ALL_JVM_ARGS%
 
"%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" com.intellij.idea.Main %*
 
SET PATH=%OLD_PATH%

5. After modification, start the script in CMD and print the following contents:

6. So far, the solution has been: it clearly states the VM configuration file address. :-Djb.vmOptionsFile=”xxxxxx”

terms of settlement:

Modification- Djb.vmOptionsFile=xxx The configuration file in the corresponding path. Remove the wrong VM parameter.

So far, this article about the problem analysis of ideago startup error reporting failed to create JVM is introduced. For more information about ideago startup error reporting, please search previous articles of developer or continue to browse the following related articles. I hope you can support developer more in the future!

Recommended Today

Use of String

1. Use of String String s1 = “abc”;//How literals are defined String s2 = “abc”; System.out.println(s1==s2)//true, s1, s2 point to the same address   1. String is declared final and cannot be inherited2. The String class implements the Serializable interface: indicating that strings support serialization,Implements the Comparable interface: indicates that String can be compared in […]