then I turn to directory c:\n to compile file Test.java
compile failed ,messages: Test.java:12: cannot resolve symbol symbol : constructor A () location: class A A i= new A(); ^ 1 error BUT ,when I change the first line of Test.java to "import p.A;" compile success!!!
the topic seems to have changed here, mid-thread.... I have a guess as to the problem with the first post. Was it that there was another class "A" (say x.A) that was found in the classpath, and overrriding the class p.A? And, that x.A did not have a no-arg constructor? Is this maybe why the topic changed to jars? was x.A in a jar that was in the classpath before c:\ ? copy/pasted your code, in exactly the same directories you specified, mine won't compile either way. Except mine complains it can't find the class A, where yours seems to have a problem only with the constructor in particular. If that's not it, I'd like to hear.... -- Jon