本人用IDEA启动一个新的项目,在项目启动时,出现下面的故障码:

Error running 'Application';
Command line is too long.Shorten command line for Application or also for Spring Boot default configuratin.

  于是启动失败。

  后来经过排查,发现idea在项目启动时其实是执行了如下的命令行:

"C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.212-3\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\Dev\IDE\IDEA\IntelliJ IDEA 2018.3.5\lib\idea_rt.jar=51042:D:\Dev\IDE\IDEA\IntelliJ IDEA 2018.3.5\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\Dell\AppData\Local\Temp\classpath443986179.jar com.xxx.Application

  由此我们得知,正是由于该命令行超长,因而触发了IDEA的启动报错,解决办法是将其改为动态类路径

  在项目的根目录下的.idea/workspace.xml文件中的<component name="PropertiesComponent">下添加如下代码:

<component name="PropertiesComponent">...<property name="dynamic.classpath" value="true" />
</component>

  之后再次启动,问题解决。

Command line is too long的解决办法相关推荐

  1. IDEA运行报Command line is too long错误解决办法

    运行idea的时候,突然发现项目跑不了:出现以下错误: Command line is too long. In order to reduce its length classpath file c ...

  2. Warning: Using a password on the command line interface can be insecure.解决办法

    被一个小朋友问到,直接公布答案: If your MySQL client/server version is a 5.6.x a way to avoid the WARNING message a ...

  3. ubuntu18.04 出现 Command ‘ifconfig‘ not found 问题的解决办法

    ubuntu18.04 出现 Command 'ifconfig' not found 问题的解决办法 参考文章: (1)ubuntu18.04 出现 Command 'ifconfig' not f ...

  4. python报错:xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 1的解决办法

    本篇文章主要讲解,python报错:xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 1的解决 ...

  5. mysql: “Warning: Using a password on the command line interface can be insecure.“ 解决方法

    mysql: "Warning: Using a password on the command line interface can be insecure." 解决方法 参考文 ...

  6. mysql 5.6 command line client闪退_MySQL 5.6 Command Line Client 点开闪退解决方法

    先看下连接mysql本地库的2种方式. 第一种运行cmd,键入mysql -uroot -p,如果提示'mysql'不是内部或外部命令,也不是可运行的程序或批处理文件.就将mysql的安装路径添加的系 ...

  7. mysql: [Warning] Using a password on the command line interface can be insecure.解决方法

    1.在使用mysql命令的时候,出现问题: https://www.cndba.cn/hbhe0316/article/22635 https://www.cndba.cn/hbhe0316/arti ...

  8. ubuntu18.04 出现 Command 'ifconfig' not found 问题的解决办法

    我们在虚拟主机中查看ip地址需要输入ifconfig,但是报以下错误: 系统提示我们安装 net-tools,当我们输入以下命令,即可安装完成. sudo apt-get install net-to ...

  9. Idea运行报错Error running ‘Application‘: Command line is too long的解决方法

    修改.idea/workspace.xml文件 <!--在 component name="PropertiesComponent" 标签里配置--> <comp ...

最新文章

  1. 关于IOS的屏幕适配(iPhone)——资源适配
  2. Cygwin鸡毛蒜皮
  3. PMCAFF | 一个CRM产品大神的产品之路
  4. android edittext设置内容为空,android – 我将EditText的InputType设置为TYPE_NULL后无法更改...
  5. JavaSE----基础语法(方法)
  6. Python从入门到精通:Python装饰器详解
  7. key php 转小写_PHP开发常识
  8. mysql 递归查找父节点_MySQL递归查询树状表的子节点、父节点具体实现
  9. [bzoj2002][Hnoi2010]Bounce 弹飞绵羊(LCT)
  10. paip. c++ 调用.net dll 最好方式powershell 使用总结.
  11. word转pdf linux java,java实现Word转Pdf(Windows、Linux通用)
  12. STM32单片机全自动锂电池容量电量检测放电电流电池电压ACS712
  13. 零基础步入数据分析岗,应该怎么开始?
  14. ​UI自动化测试面试题及答案大全
  15. 【v-charts】折线图
  16. 43.248.189.18 Steam游戏服务器搭建教程
  17. SpaceShooter打飞机教程笔记(三)
  18. 什么软件可以编辑PDF文件?编辑工具分享
  19. SAP MM 根据采购订单反查采购申请?
  20. java: You aren't using a compiler supported by lombok, so lombok will not work and has been disab...

热门文章

  1. 苹果12共享位置连接服务器失败,appleid链接服务器失败怎么回事
  2. 局域网限速软件_教你如何自建不限速私有云盘
  3. VMware通过VMnet8共享本地网络
  4. 易特鞋店销售管理后台软件(3)
  5. 【有利可图网】PS经验分享;一张普通素材,做出N种方案
  6. 通俗易懂的泰坦尼克号生存分析(titanic)
  7. 路由表包含哪些信息?如何配置浮动路由?
  8. linux 安装clang,Centos7.6安装clang9
  9. ESPCN论文阅读笔记
  10. 音视频骚操作,FFmpeg 如何播放带「图片」的 M3U8 视频,IJKPlyaer 适配非标 TS 文件