我在idea进行单元测试的时候出现报错信息:

Error running Application. Command line is too long.Shorten the command line via JAR manifest or via a classpath file and rerun.

翻译过来发现是:运行应用程序命令行太长,通过JAR清单或通过类路径文件缩短命令行并重新运行。

解决办法为:

1.点击“Edit Configurations”

2. 选择左侧的启动失败的项目,点击右侧“Modify options”

3.点击“shorten command line”

4.Shorten command line选择“JAR manifest”,点击“Apply”生效即可

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐