Intellij IDEA运行报Command line is too long的解决办法

报错信息大概如下:

1
2
Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.

 解决方案(1):

   找到项目下的.idea/workspace.xml,在标签<component name="PropertiesComponent">里添加一行属性:<property name="dynamic.classpath" value="true" />

1
2
3
4
<component name="PropertiesComponent">
  其它属性不改
  <property name="dynamic.classpath" value="true" />
</component>

 

解决方案(2):

  打开程序的运行配置,

    

Shorten command line改为JAR manifestclasspath file,如图所示:

 

 

 

然后重新启动项目即可;

 

posted @   IT6889  阅读(3701)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示