解决IDEA运行报错Error running xxApplication,Command line is too long 方法

 

解决方法1

    找到项目下的.idea/workspace.xml,在标签<component name=”PropertiesComponent”>里添加一行属性:

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

解决方法2:

    打开程序的运行/调试配置(Run/Debug Configurations)

    找到 (Modify options) 选中(Shorten command line)

    把Shorten command line改为JAR manifest或classpath file

 

请登录后发表评论

    没有回复内容