報錯信息大概如下:
<code>Error running'xxx'
: Command lineis
toolong
. Shorten command linefor
xxx or alsofor
Applicationdefault
configuration./<code>
解決方案(1): 找到項目下的.idea/workspace.xml,在標籤裡添加一行屬性:
<code><
component
name
="PropertiesComponent"
> 其它屬性不改<
property
name
="dynamic.classpath"
value
="true"
/>component
>/<code>
解決方案(2):
打開程序的運行配置,把Shorten command line改為JAR manifest或classpath file,如圖所示:
![Intellij IDEA運行報Command line is too long的解決辦法](http://p2.ttnews.xyz/loading.gif)
多讀書,多分享;多寫作,多整理。