解决idea出现报错:Error running,Command line is too long. Shorten command line

报错的原因:因为项目需要打印的环境变量太长,超过了限制,需要缩短命令行来解决问题。

解决办法:

方法一:Edit Configurations,将默认的Shorten command line的值user-local default 改为 JAR mainifest 或者 classpath file(这种办法需要对每个类单独设置)

解决idea出现报错:Error running,Command line is too long. Shorten command line_第1张图片

方法二:在项目的.idea/workspace.xml文件中,找到,后面在添加一行(此方式一次设置就可)

你可能感兴趣的:(IDEA,intellij-idea)