執(zhí)行程序報(bào)錯(cuò) Error running,Command line is too long. Shorten command line
原因是啟動(dòng)命令過長
方案一:
1.在工程文件.idea目錄下找到workspace.xml
2.find查詢并定位到PropertiesComponent
3.添加代碼行
<property name="dynamic.classpath" value="true" />
或另一種形式
"dynamic.classpath":"true"
4.CTRL+S保存確定
方案二:
1.打開Edit Configurations
2.點(diǎn)擊Modify options設(shè)置,勾選Shorten command line
3.在Edit Configurations界面下方新增的Shorten command line選項(xiàng)中選擇JAR manifest或classpath file
4.Apply + OK文章來源:http://www.zghlxwxcb.cn/news/detail-519495.html
再次執(zhí)行程序,程序執(zhí)行成功文章來源地址http://www.zghlxwxcb.cn/news/detail-519495.html
到了這里,關(guān)于IDEA:Error running,Command line is too long. Shorten command line解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!