假如你程序写了package test;
那么就是把程序编译后放在默认的输出路径的test目录下.
如test/Hello.class
在其他程序中用import test.Hello;来导入Hello.class
系统会在你的classpath目录下搜索test目录下的Hello.class