IDEA:Error running,Command line is too long.解决方案

 更新时间:2023年07月11日 10:05:44   作者:程序员大佬超  
这篇文章主要介绍了IDEA:Error running,Command line is too long.解决方案,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教

IDEA:Error running,Command line is too long.

报错如下

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

原因是启动命令过长。

解决方法

1、打开Edit Configurations

2、点击Modify options设置,勾选Shorten command line

3、在Edit Configurations界面下方新增的Shorten command line选项中选择JAR manifest或classpath file

然后 Apply,OK 即可。

IDEA 出现问题:Error running,Command line is too long. Shorten command line

报错信息

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

运行"系统服务器应用程序"时出错。命令行太长。

通过 JAR 清单类路径文件缩短命令行,然后重新运行。

解决步骤

在项目的.idea/workspace.xml文件中,找到,后面在添加一行

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

相关文章

最新评论