我在E盘下面创建了一个test.java,作用是打出"hello world",代码如下:
public class test {
public static void main(String[] args) {
System.out.println("hello world");
}
}
用命令行编译、执行没有问题.
然后还有一个manifest.mf的文件,也在E盘根目录下,内容如下:
Manifest-Version: 1.0
Main-Class: test
Created-By: ALiao
然后继续用命令行输入jar cfvm test.jar manifest.mf test.java
显示已经生成了test.jar 文件,但我用java -jar test.jar检验时总出现
Exception in thread "main" java.lang.NoClassDefFoundError: test
我想请问这个错误应该如何解决