hi, guys, I got a problem in try to take advantage of the
java package structure. like this:
//------------
package a.b;
class One {
public int get(){return 8;}
}
//-----class Two try to use One
package a.c;
class Two{
public static void main(
String ar[]){
int i = new a.b.One().get();
System.out.println(i);
}
}
and the directary is like : current/src (One.java and Two.java in this directary).
also exist current/classes
compile by useing the command like :
current : javac -d classes src/One.java
(works well and I get current/classes/a/b/One.class.)
current : javac -d classes src/Two.java
----------compile error, a.b.One package doesn't exist! ???