巧了,最近起了一个挺长的类名,启动main函数的时候,idea返回了一个Command line is too long Shorten command line的报错,请教研究之后,解决方法如下
方法一
- 找到 .idea 下面的 workspace.xml
- 找到标签
<component name="PropertiesComponent">
- 在标签中新增一栏
<property name="dynamic.classpath" value="true" />
方法二
- 在程序的运行配置中,把Shorten command line改为JAR manifest或classpath file

图片来自 Intellij IDEA运行报Command line is too long Shorten command line for XXX or also的解决办法
当IDEA启动main函数遇到'Command line is too long Shorten command line for XXX'错误时,可以尝试两种解决方案:一是修改.workspace.xml文件中的<VMOptions>标签,二是将运行配置中的'Shorten command line'设置为'JAR manifest'或'classpath file'。

1524

被折叠的 条评论
为什么被折叠?



