java

关注公众号 jb51net

关闭
首页 > 软件编程 > java > Intellij IDEA运行

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

作者:南瓜慢说

这篇文章主要介绍了解决Intellij IDEA运行报Command line is too long的问题,本文通过两种方案给大家详细介绍,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

报错信息大概如下:

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

总结

到此这篇关于解决Intellij IDEA运行报Command line is too long的问题的文章就介绍到这了,更多相关Intellij IDEA运行内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

您可能感兴趣的文章:
阅读全文