1. 程式人生 > >idea報錯:Error running $classname: Command line is too long. Shorten command line for $classname.

idea報錯:Error running $classname: Command line is too long. Shorten command line for $classname.

9.png rop line too long component 我只 ima bsp 選擇

Command line is too long

打印的變量太長了,超過了限制,這都會報錯...我只想知道idea基於什麽原理會報這個錯...

解決

1.按照提示修改該類的配置,選擇jar manifest

技術分享圖片

2.在項目的.idea/workspace.xml文件中,找到 <component name="PropertiesComponent">,添加一行<property name="dynamic.classpath" value="true" />

技術分享圖片

idea報錯:Error running $classname: Command line is too long. Shorten command line for $classname.