【java】解决项目启动遇到 Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.
问题复原
项目启动时报错一下内容:Error running MjkjApplication. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun
问题解决:
这是由于命令行太长导致 可以通过 JAR manifest或通过 classpath file 缩短命令行并重新运行
具体步骤:
-
点击运行–edit configrations
-
在build and run 模块modify option选择shorten commend line,效果如下
4. shorten command line 选择jar manifest 或者classpass file