How do I compile and run the following programs:
Test1.java:
package A; public class Test1 { public int a = 1; }
Test2.java:
The compiler will create directories called A and B and place the .class files within them.
You should not need to copy the class files manually into their package directories, and it will probably not work if you do that.