Intellij IDEA執行報Command line is too long的解決辦法
阿新 • • 發佈:2021-01-06
Intellij IDEA執行報Command line is too long的解決辦法
報錯資訊大概如下:
Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.
解決方案(1):
找到專案下的.idea/workspace.xml,在標籤裡新增一行屬性:
<component name="PropertiesComponent">
其它屬性不改
< property name="dynamic.classpath" value="true" />
</component>
解決方案(2):
開啟程式的執行配置,把Shorten command line改為JAR manifest或classpath file,如圖所示:
轉載來源:https://www.imooc.com/article/304254?block_id=tuijian_wz#