Intellij IDEA運行報Command line is too long的解決辦法

報錯信息大概如下:

<code>Error running 

'xxx'

: Command line

is

too

long

. Shorten command line

for

xxx or also

for

Application

default

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的解決辦法

多讀書,多分享;多寫作,多整理。


分享到:


相關文章: