目录

工欲善其事

实践出真知

活跃标签: linux java mysql 待分类 windows js win10 springboot pdf idea docker 电路 esp32 vue macOS nginx git Arduino maven ffmpeg

存档:

X

DEA 出现问题:Error running,Command line is too long. Shorten command line解决方案

更新了项目一运行项目莫名其妙的报了错

Error running ‘XXX’: Command line is too long. Shorten command line for MallTest.testRun.
错误运行的测试。命令行太长。缩短命令行。

错误原因
出现这个的原因一般是因为项目需要打印的环境变量太长,超过了限制,需要你缩短命令行来解决问题。

解决办法

  1. 修改运行配置Configurations,将默认的Shorten command line的值user-local default 改为 JAR mainifest 或者 classpath file
    这种办法每次需要对每个类单独设置。
  2. 在项目的.idea/workspace.xml文件中,找到
    <component name="PropertiesComponent">,后面在添加一行 <property name="dynamic.classpath" value="true" />
    这种方式一次设置就行。

标题:DEA 出现问题:Error running,Command line is too long. Shorten command line解决方案
作者:llilei
地址:http://solo.llilei.work/articles/2022/06/07/1654589482561.html