假设如下目录有个class文件,并且里面有main方法:
d:workspaceeclipsecomJavaCoreclassloaderMyClassLoader.class
首先进入cmd命令行:
cd /d d:workspaceeclipse
java com.JavaCore.classloader.MyClassLoader
也可以带参数运行:
java com.yuanqiao.JavaCore.classloader.MyClassLoader com.yuanqiao.JavaCore.classloader.HelloWorld yuanqiao