Code: Select all
package MyPackage;
public class MyClass{
public static void main(String[] args){
System.out.println("1");
}
}
Code: Select all
Exception in thread "main" java.lang.NoClassDefFoundError: MyClass (wrong name: MyPackage/MyClass)"
Code: Select all
java MyClass
Code: Select all
java MyPackage.MyClass
Is there any way to get get TextPad to include the package, or to convince java that it doesn't need it?