the three classes must belong a package , if invoke the classes in same package you will get is .if you want to get the classes from other package , you should declare the three classes PUBLIC.and the directory for the package(that your classes in) should have sam name of your package's
我想你可能没有指定 package
那么在 java 命令行的参数 -classpath 后面加上 .
比如原来是 java -classpath c:\jdk\lib\tools.jar
就写成 java -classpath c:\jdk\lib\tools.jar;.;
应该可以了
定义 package 很简单,在 source 第一行写
package mypackage;
就行了
建议用package