Intellij IDEA运行报Command line is too long. 的解决办法 Configurable command line shortener and more
问题描述:My classpath got too long... 、 Command line is too long. Shorten command line for ImowTest.testLoadRegeling or also for JUnit default configuration
Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.
打开项目文件夹,找到.idea/workspace.xml 文件,在<component name="PropertiesComponent"> 标签里添加一行属性:<property name="dynamic.classpath" value="true" /> 原因是当类路径太长,或者有很多 VM 参数时,程序将无法启动。大多数操作系统都有命令行长度限制。在这种情况下,IntelliJ IDEA 会尝试缩短类路径。程序员寻求缩短命令行,最好技术缩短应用程序或 Spring Boot 默认配置的命令行。
|