您好,欢迎来到步遥情感网。
搜索
您的当前位置:首页本地启动报:Command line is too long,Shorten the command line via JAR manifest

本地启动报:Command line is too long,Shorten the command line via JAR manifest

来源:步遥情感网

在本地启动项目时,idea报错,显示如下:

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

一、问题原因:

你的项目包含大量的依赖项、配置参数或复杂的命令行选项时,命令行可能会变得非常长,超出操作系统的。启用 “Shorten command line” 可以通过以下方式来解决这个问题:

二、解决步骤如图:

选择编辑:

 选择你的应用,并点击“Modify options”

启用 “Shorten command line”

 

选择对应的选项:

  • “JAR manifest”:将命令行参数写入 JAR 清单文件中。这种方式适用于打包成 JAR 文件的项目。
  • “classpath file”:将命令行参数写入一个临时的类路径文件中。这种方式适用于在开发环境中运行项目。

 选择合适选项,重新启动项目即可

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- obuygou.com 版权所有 赣ICP备2024042798号-5

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务