HelloWorld.java and Class2.java reside in the same dir, and thus, are expected to belong to the same package. Either removing "package org.mysite;" from Class2.java or adding it to HelloWorld.java would fix this error.
However, the error message is misleading. The Java compiler, javac, should fix that.