Hi! Everybody,
I'm new to java. Please help me solve this problem:
I have one package named: pack in d:\
In "pack" I have two other package: " A" and "B".(d:\pack\A and d:\pack\B)
Package "A" consist of a file known as "Greet.java"
Package "B" consist of a file known as "TestGreet.java"
Greet.java:
package pack.A;
public class Greet{
public void disp()
{
System.out.println("In Greet Class!");
}
}
TestGreet.java:
package pack.B;
import pack.A.*;
public class TestGreet{
public static void main(String args[])
{
Greet G= new Greet();
G.disp();
}
}
I tried setting classpath to d:\
so files got compiled but not executed...
Please, let me know what can be done to execute it...
Regards,
Shital jain.

