Cannot run project from IntelliJ IDEA because of jdwp error

前端 未结 6 1909
抹茶落季
抹茶落季 2021-02-07 05:55

I have a project in IntelliJ IDEA I want to run locally. When I click its debug button it says:

ERROR: Cannot load this JVM TI agent twice, check your java comma         


        
6条回答
  •  耶瑟儿~
    2021-02-07 06:32

    This is probably too late to help you, but maybe it will help somebody else. The answer is based on a support forum posting by Aleksei Sosnovski.

    This can happen when your JAVA_OPTS contains two -Xrunjdwp arguments. E.g., one of these arguments might come from the server start script invoked by IntelliJ to start the container, and another may be added by IntelliJ itself. You can check by looking at JAVA_OPTS in the log when launching the container without debug. If you see an -Xrunjdwp argument, just find where it is set in the container startup script, and remove it.

提交回复
热议问题