IDEA:Error running ' XXX ': Command line is too long. Shorten command line for XXX

created at 12-29-2021 views: 49

error

An error is reported when running IDEA:

Error running 'XXX': Command line is too long. Shorten command line for XXX

solution

did some search and found there are two solutions.

method 1

Modify .idea\workspace.xml under the project, find the tag <component name="PropertiesComponent">, and add a line in the tag

<property name="dynamic.classpath" value="true" />

method 2

Open run -> edit configuration, modify the Shorten command line, and change it to JAR manifest

created at:12-29-2021
edited at: 12-29-2021: