我的程序如下:
package hello;
public class helloworld{
public static void main(String args[]){
System.out.println("hello!");
}
}
源程序的存放路径是e:/hello/helloworld.java,编译后的class文件也存放在hello文件夹下
在控制台中运行时是这样的e:\>java hello.helloworld回车,在第二行出现hello!,成功;
如果我不想在运行helloworld.class时使用包名加"."的方式运行,即在e:\hello>下运行class文件,那应该如何做到?请指教!