[Solved] Idea Run Error: Error running ‘Application‘: Command line is too long

Modify .idea/workspace.xml file:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<!--Configurate in the tag of component name="PropertiesComponent"-->
<component name="PropertiesComponent">
<!--ADD-->
<property name="dynamic.classpath" value="true" />
</component >
<!--Configurate in the tag of component name="PropertiesComponent"--> <component name="PropertiesComponent"> <!--ADD--> <property name="dynamic.classpath" value="true" /> </component >
<!--Configurate in the tag of component name="PropertiesComponent"-->
<component name="PropertiesComponent">
	<!--ADD-->
	<property name="dynamic.classpath" value="true" />
</component >

Then re-run the project

Read More: