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
I had the same problem in my case -Xrunjdwp was set twice: one in the IDEA debug configuration and again in the system variables in CATAALINA_OPTS.
-Xrunjdwp
CATAALINA_OPTS
once I removed it from system variables (inside the IDEA it is read only) problem was fixed