我的java / test项目中有这个主类
我创建了一个jar并希望运行这个main方法(在“test”文件夹下)
我该怎么办呢?
❯ java -jar UsersServer.jar -classpath linqmap.users.CacheOnlyTestRunner [13:25:24]
no main manifest attribute, in UsersServer.jar
❯ java -classpath UsersServer.jar linqmap.users.CacheOnlyTestRunner [13:25:31]
Error: Could not find or load main class linqmap.users.CacheOnlyTestRunner
❯ java -cp UsersServer.jar linqmap.users.CacheOnlyTestRunner [13:25:49]
Error: Could not find or load main class linqmap.users.CacheOnlyTestRunner