解决项目启动报错

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

打开启动配置

修改配置选项

勾选shorten command lines

选择JAR maniftest

三种选项的意思:

  • none:不会缩短classptah。如果命令行参数长度超过了操作系统的限制,那么idea就不会运行应用,然后会显示一个提示语来建议你缩短命令行长度

  • JAR manifest:idea会把classpath写入临时生成的classpath.jar中的manifest文件中

  • classpath file: idea将把一个长classpath写入一个文本文件

Shorten command line总结

  • none(默认):不缩短JVM参数,直接把所有classpath作为JVM参数穿进去
  • JAR manifest:把所有classpath写入到临时的claapath.jar包中的manifest文件中,在manifest文件的Class-Path属性中指定所有的classpath。然后JVM参数中指定classpath参数为claapath.jar所在的绝对路径
  • classpath file:把所有的classpath写入到临时的文本文件中,然后把classpath设置到idea自定义的URLClassLoader中,然后使用自定义的URLClassLoader加载程序入口,反射调用main方法。main方法所在的类的ClassLoader就是idea自定义的URLClassLoader

具体深入分析请查看:Shorten command line

解决Error running IandunCustservApplication. Command line is too long. Shorten the command line相关推荐

  1. idea Error running Application. Command line is too long. Shorten the command line via JAR manifest

    idea内容太长报错 报错: Error running Application. Command line is too long. Shorten the command line via JAR ...

  2. IDEA debug报错Error running AxPersonListTest.test. Command line is too long. Shorten the command line

    IDEA debug时报错 Error running AxPersonListTest.test. Command line is too long. Shorten the command lin ...

  3. Error running JeecgSystemApplication. Command line is too long.Shorten the command line via JAR m

    Error running JeecgSystemApplication.   Command line is too long. Shorten the command line via JAR m ...

  4. Error running xxx. Command line is too long. Shorten the command line via JAR manifest or via a clas

    Error running xxx. Command line is too long. Shorten the command line via JAR manifest or via a clas ...

  5. 报错Command line is too long. Shorten the command line xxx【解决办法】

    运行springboot项目的时候,出现报错,报错信息如下: Error running OrderServiceBoot. Command line is too long. Shorten the ...

  6. Command line is too long. Shorten the command line via JAR manifest

    Error running SaasPlatSpringApplication. Command line is too long. Shorten the command line via JAR ...

  7. Command line is too long.Shorten the command line XXX

    标题@[TOC](Command line is too long.Shorten the command line XXX) 问题描述 Error running XXX. Command line ...

  8. 如何解决Error running ‘Tomcat 8.5.45‘: port out of range:-1

    问题:在IDEA中配置Tomcat运行环境的时候出现Error running 'Tomcat 8.5.45': port out of range:-1 是什么原因? 解决: 1.在Tomcat安装 ...

  9. 【解决】Command line is too long. Shorten the command line xxx

    问题描述 使用Idea运行项目在项目启动时报错: Command line is too long. Shorten command line for XXXApplication or also f ...

最新文章

  1. AI 算法给手画线稿自动上色指南来了
  2. 2021年李永乐6套卷一道无穷小定义的题目
  3. Apache Solr 实现去掉重复的搜索结果
  4. 一文读懂熔断器和重试机制
  5. ajax跨域只能是get,jsonp跨域请求只能get变相解决方案
  6. 使用PowerShell将字符串拆分为数组
  7. Apache Hive-1.2.1 Manual Patch and Compile
  8. 北大AI第八讲 李航 自然语言处理的现实与挑战--李航 VS 雷鸣 对话全文
  9. 主题等.ppt及活动内容.ppt文档规范要求
  10. vue网易云二维码登录
  11. 指数函数为例的超越函数的逼近拟合误差分析
  12. 朋友圈微信投票很麻烦?python开发个自动化刷票脚本,再也不用头痛了!
  13. Kerberos基础及KDC服务(理论知识)
  14. linux lpte_PC并行口LPT的IO操作(基于WinIo)
  15. 亚马逊工资翻倍!本地人士担忧:房价又要...
  16. Integer 和 int
  17. 如何获取系统当前时间
  18. 【程序人生】互联网岗位分工;互联网开发流程;职责分工
  19. Python枚举是什么-读懂Python枚举的方法
  20. 微信小程序iOS使用input输入时placeholder及输入内容消失或隐藏

热门文章

  1. 前端如何提交数据给后端(包含前端和后端代码)
  2. TensorFlow 真的要被 PyTorch 比下去了吗?
  3. Excel(Office、WPS)一次性删除多个空行
  4. 判断数组对象属性值是否相等
  5. 搭建一个简易的医疗导诊系统
  6. HLL 算法(HyperLogLog)
  7. SAP 会计凭证更改(FB02) 配置及注意事项
  8. 断崖式下跌 - 创业者的噩梦
  9. ps如何把自己的图与样机结合_教你如何自己创建一个ps贴图样机!
  10. 计算机考研基础必考知识点,2019计算机考研高数49个基础知识点(必知)