Eclipse run configurations:Error: Could not find or load main class Files

来源:互联网 发布:工艺仿真软件 编辑:程序博客网 时间:2024/04/27 23:06

跑自己的测试工程的时候,run as Junit test可以运行,有一些系统参数需要设置,当然可以在工程里面用
System.setProperty("Server", "localhost");来设置。
也可以通过run as-> run configurations里的Arguments来设置。

这里写图片描述

这里写图片描述

如果路径里有空格,需要用”“将路径包围,要不然会报错
Error: Could not find or load main class Files

0 0