在D:\C\Load下,有te.java,和com等文件夹,包含用户类
环境变量里也设置了classpath路径编译可以通过,执行却出错:te.java源代码:
import com.apex.util.loader.FileReader;
import com.apex.util.loader.LiveLoader;
import java.lang.reflect.Method;
import java.security.Security;
import java.util.Set;
import org.bouncycastle.jce.provider.BouncyCastleProvider;public class te {
public void main (String args[])
{
    initProvider();
            FileReader reader = new FileReader();
            try {
              byte rs[] = reader.getResource();
              String str = new String(rs , "UTF-8");
              System.out.println(str);
            }
            catch(Exception exception1) { }

}
    private void initProvider()
    {
        Set als = Security.getAlgorithms("Cipher");
        if(!als.contains("RSA"))
            Security.addProvider(new BouncyCastleProvider());
    }
}执行提示错误是:
Exception in thread "main" java.lang.NoSuchMethodError: main网上查了很多帮助,说classpath没有设置好,
但是我就不明白,为何编译可以通过,而执行却不可以,
编译是:javac te.java
执行是:java te都没有特殊指定class,为何不可以?到底哪里出错了???