Hi everyone,
I really deserve a kick for asking this question so please bear with me.
Assume i have two classes class a and class b.
Now class b depends on class a to compile correctly. Class a has been compiled and the class file is generated correctly. Now when i compile class b, it says it can't find class a although class a is in the same directory as the source of class b.
This is what in class a
public class a
{
public void prt()
{
System.out.println("Jwenting is going to kill me for asking this question");
}
}
This is what is class b
public class b
{
public static void main(String args[])
{
a w = new a();
a.prt();
}
}
Please note that both the sources of class a and class b are in the same directory and there are no packages involved.
Now this is how i am compiling class b
javac b.java
Is there any classpath setting that i need to take care of so that my class b can compile.
Again i apologize for my stupidy
Yours Sincerely
Richard West