报错如下:
Error running XXX. 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
3.添加shorten command line
4.选择JAR manifest 或者 classpath file。
最后apply,重新启动即可。
参考链接:
IDEA:Error running,Command line is too long.解决方案_java_脚本之家 (jb51.net)