idea启动报错,错误信息:
Error running Application. Command line is too long.
Shorten the command line via JAR manifest or via a classpath file and rerun.
idea老版本点击“Edit Configurations”就有该Shorten command line配置选择“JAR manifest”,点击“Apply”生效即可
解决方法idea版本23最新:
- 点击“Edit Configurations”
- 选择左侧的启动失败的项目,点击右侧“Modify options”
- 勾选“shorten command line”
- Shorten command line选择“JAR manifest”,点击“Apply”生效即可