当前页面: 开发资料首页 → J2SE 专题 → 找不到方法错误main
找不到方法错误main
摘要: 找不到方法错误main
Exception in thread -#34;main-#34; java.lang.NoSuchMethodError: main
是什么原因呢
public class Test{
public void main(String argv[])
{
}
}
我的环境变量是%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbem;D:/ProgramFiles/J2SE/bin;D:/ProgramFiles/UltraEdit;D:/ProgramFiles/MySQL/bin
你的classpath 设置的不正确,你可以在环境变量中改一下
哪里错了 我就是不知道啊
晕死 main方法应该是static的 不然它只会把你的main方法当做普通的方法来处理
ya 我真是SB啊