So when i try to open a java class that\'s not in a package from the command prompt it all works fine, but when I try to open a class that\'s in a package it gives me NoClas
NoClassDefFoundError means that your JVM can't find your class at runtime. This could be because it's not visible (set to private or protected, or just no access modifier).