Hi,
I have following directory structure
F:\java1\new1\Test.java
The code for Test.java is
the second directory structure is
F:\java2\new2\Test2.java
which has the following code
I am compiling the Test.java in the following way
F:\>javac java1\new1\Test.java
and its compiling fine
when i am trying to compile Test2.java which is in java2\new2 package
F:\java2>set classpath.;= f:\java1\new1\Test.java
F:\java2>javac new2\Test2.java
Its showing error message
import java1.new1.*;
^
Test2.java:8: error: cannot find symbol
Test test=new Test();
^
symbol: class Test
location: class Test2
Test2.java:8: error: cannot find symbol
Test test=new Test();
^
symbol: class Test
location: class Test2
3 errors