The error information is as follows:
Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.
Solution (1): Find .idea/workspace.xml under the project and add a line of properties to the tag <component name="PropertiesComponent">
:<property name=" dynamic.classpath" value="true" />
<component name="PropertiesComponent">
Other properties are not changed
<property name="dynamic.classpath" value="true" />
</component>
Solution (2)
Open the running configuration of the program and change short command line
to jar manifest
or classpath file
, as shown in the figure: