今天在写测试类的时候,突然发现无法启动测试

Command line is too long. Shorten command line for WebServiceUtilsTest.callMethod or also for JUnit default_ide



这个是因为类路径太长,或者有许多VM参数,程序就无法启动。原因是大多数操作系统都有命令行长度限制。在这种情况下,IntelliJIDEA将试图缩短类路径。方法很简单,只需要将 shorten command line选择为 classpath file即可。


Command line is too long. Shorten command line for WebServiceUtilsTest.callMethod or also for JUnit default_命令行_02