I have two java classes as follows
App1 without a package:
App1
class App1 { public static void main(String[] args) { System.out.
App2 needs to be in the java/java/package1 directory. In java, the package name and the directory for the source code must match. Did you not get a compilation error?