I am trying to import a file from outside the package, but when i compiled the below shown program it is showing "cannot find symbol". Do i have to set the classpath or something, if need where should i have to set the path and how. Thanks in advance. :)

package pack;//my first packagepublic class A{ public int a=10; public void display() { System.out.println("Hello"); }}import pack.*;class B extends A//class b is in packone(second package){ public static void main(String args[]) { B b=new B(); b.run(); A aa=new A(); System.out.println(aa.a); aa.display(); } void run() { System.out.println("hello"); }}

Check Solution