有两个方法:

1、

解决方法:
修改项目下 .idea\workspace.xml,找到标签

<component name="PropertiesComponent">
在标签里加一行

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

 

2、在run-> edit configuration中修改红色画圈部分,选择为运行报错:Command line is too long. Shorten command line

 

 

运行报错:Command line is too long. Shorten command line

 

相关文章: