I have a Java application and the Java files are in a package called app
. I have added a JAR file to the classpath. All classes in the JAR file are in the default package.
From my Java application I can't access classes of this JAR file. Only if I put my application files in the default package, then I can see the classes in the JAR file. Why is that?