command line is too long. shorten command line for xxx的解决方法

问题:

IDEA启动时报: command line is too longxxxxxxxxxxxx。


解决方案:

1.

如上图: 打开IDEA,找到项目最上部的 .idea ----- 双击打开 ----- 找到 workspace.xml ---- 双击打开该文件

2.

如上图,在 workspace.xml 文件中搜索:

<component name="PropertiesComponent">

在这块配置中加上一条:

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

重新启动便可正常运行。


原因解释:

这到底是为什么呐?!

有位叫 仇聘发栖 的大佬是这样说的:

此选项控制类路径如何传递到JVM:通过命令行或通过文件。大多数操作系统都有最大的命令行限制,当超过时,IDEA将无法运行您的应用程序。 当命令行长于32768个字符时,IDEA建议您切换到动态类路径。将长类路径写入文件,然后由应用程序启动程序读取并通过系统类加载器加载。 如果您对实施细节感兴趣,可以查看IDEA社区版源代码,JdkUtil.java文件,

setupJVMCommandLine

方法。

command line is too long. shorten command line for xxx的解决方法相关推荐

  1. Command line is too long. Shorten command line for Application---微服务升级_SpringCloud Alibaba工作笔记0067

    今天打开idea项目,启动的时候,无法启动报错: 15:19    Error running 'Application': Command line is too long. Shorten com ...

  2. Command line is too long. Shorten command line for Doc.generateAsciiDocs or

    Intellij IDEA启动项目报Command line is too long. Shorten command line for XXXApplication or also for 解决方法 ...

  3. IDEA启动main函数时,Command line is too long Shorten command line for XXX or also问题解决

    巧了,最近起了一个挺长的类名,启动main函数的时候,idea返回了一个Command line is too long Shorten command line的报错,请教研究之后,解决方法如下 方 ...

  4. Idea报错:Command line is too long. Shorten command line for className

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

  5. Error running Command line is too long. Shorten command line for

    Error running 'xxxxxxxxApplication': Command line is too long. Shorten command line for xxxxxxx? 使用网 ...

  6. 【idea】Command line is too long. Shorten command line for XXXApplication

    Command line is too long. Shorten command line for XXXApplication or also for Spring Boot default- 问 ...

  7. Command line is too long. Shorten command line for

    问题 今天在idea中运行一个hbase jdbc项目时无法启动,提示如下: Command line is too long. Shorten command line for SystemAppl ...

  8. Command line is too long. Shorten command line for XXXApplication or also for Spring Boot

    问题: 启动一个新项目的主函数入口类(启动类)时无法启动,提示如下: Command line is too long. Shorten command line for SystemApplicat ...

  9. Command line is too long. Shorten command line for PictureApplication or also for Spring Boot defaul

    一,报错信息 Error running 'PictureApplication': Command line is too long. Shorten command line for Pictur ...

  10. 解决:Command line is too long. Shorten command line for xxx or also for Application default configurat

    解决:Error running 'xxx': Command line is too long. Shorten command line for xxx or also for Applicati ...

最新文章

  1. 非常漂亮的Flash纯脚本生成饼图
  2. jQuery Ajax详解
  3. 源码里查看Android版本
  4. Python 定时任务的实现方式
  5. php获取扫码枪的内容,一起看看js获取扫码枪输入数据的方法_WEB前端开发
  6. Android 视频图片 轮播,详解android 视频图片混合轮播实现
  7. mybatis mysql 事务处理_详解Java的MyBatis框架中的事务处理
  8. [转]Why Not Paxos
  9. python windows 消息通讯_如何使用python與windows中的事件/消息掛鈎
  10. codeforces 369C Valera and Elections
  11. iOS开发之算法加密md5,sha1,AES,base64
  12. 【鱼眼镜头7】如何利用鱼眼镜头测距
  13. 第17章 高级数据表示 17.7 二叉搜索树(第一部分ADT 和 接口)
  14. 点符号垂直居中 html,word垂直居中 word中垂直居中符号在哪里?
  15. 信息系统监理师备考知识点
  16. HCIP(八)---OSPF的防环机制(SPF算法)
  17. 工厂食堂3D指纹考勤系统解决方案
  18. 使用eleme upload组件上传附件时,文件后面的成功标志没有出来
  19. 升级mongodb时出现The data files need to be fully upgraded
  20. pkg打包node工程

热门文章

  1. 爱奇艺视频自动发布工具操作
  2. ZOJ 4535 ZOJ Monthly, October 2011 H
  3. 【正经】推荐 8 位技术写作者
  4. dfa matlab用法,用MATLAB实现DFA算法及报告.doc
  5. SQL语句经典面试题
  6. 22年抖音小店蓝海项目,操作流程分享,建议收藏!
  7. 自动驾驶中常用传感器作用
  8. 最有趣的linux命令玩法20条总结
  9. facebook做的ocp_如何查看您在Facebook上所做的一切的日志
  10. SQLyog 快捷键