为了账号安全,请及时绑定邮箱和手机立即绑定

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

标签:
Java

报错信息大概如下:

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" />

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

解决方案(2):

打开程序的运行配置,把Shorten command line改为JAR manifestclasspath file,如图所示:

Change Shorten Command Line


欢迎访问南瓜慢说 www.pkslow.com获取更多精彩文章!

多读书,多分享;多写作,多整理。

点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
JAVA开发工程师
手记
粉丝
2
获赞与收藏
14

关注作者,订阅最新文章

阅读免费教程

  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消