I'm doing a small program for school and i'm writing the first part and I run it in NetBeans and everything works fine, but when I submit it for grading I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: TextMsgExpander (wrong name: textmsgexpander/Te
being a newbie in Java i'm not quite sure what this means. any guidance would be helpful Thanks in advance
package textmsgexpander;
/**
*
* @author Craig
*/
import java.util.Scanner;
public class TextMsgExpander {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
String userEntry = "";
String userOutput = "";
System.out.print("Enter Text: ");
userEntry = scnr.nextLine();
userOutput = "You entered: " + userEntry;
System.out.println(userOutput);
return;
}
}