博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Command line is too long问题解决

Posted on 2020-08-17 10:36  红与黑hyh  阅读(1731)  评论(0编辑  收藏  举报

Idea启动项目报错:Command line is too long. Shorten command line for className or also for JUnit defaultconfiguration.

解决方法:

在该项目文件夹.idea/workspace.xml中找到

<component name="PropertiesComponent">

  ...

</component>

然后在其中添加:

<property name="dynamic.classpath" value="true" />

问题得到解决。

 

--------------------------------------------------------------------

另外一种更简单的解决方法:

点击idea上方的 edit Configurations

看有没有 storten command line ,值切换成 JAR mainfest

 

如果没有 storten command line ,点右上角的 Modify options ,找到 storten command line前面打勾