1、原因
命令行太长
2、解决
方案1:修改文件.idea/workspace.xml
1)找到项目下的.idea/workspace.xml
2)打开文件,找到标签:PropertiesComponent
3)添加一行属性:
<component name="PropertiesComponent">
其它属性代码不要修改,只添加下面一行属性代码
<property name="dynamic.classpath" value="true" />
</component>
方案2:修改参数Shorten command line
1)点击菜单栏Run——>Edit Configurations
2)点击Modify options——>Shorten command line,显示出Shortn command line参数(默认值为noe)
3)点击Shorten command line下拉框——>改为JAR manifest 或 classpath file