Intellij IDEA运行 解决Intellij IDEA运行报Command line is too long的问题

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

Intellij IDEA运行 解决Intellij IDEA运行报Command line is too long的问题

南瓜慢说   2021-04-22 我要评论

报错信息大概如下:

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,如图所示:

总结

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们