public class CommandTest {
public static void main(String[] args) {
for (int index = 0; index < args.length; index++)
System.out.println(args[index]);
}
}
then I go into the console and this happens:
Quote
C:\>java CommandTest Hi There
Exception in thread "main" java.lang.NoClassDefFoundError: CommandTest
Caused by: java.lang.ClassNotFoundException: CommandTest
at ... (bunch of java.lang, java.net places)
Exception in thread "main" java.lang.NoClassDefFoundError: CommandTest
Caused by: java.lang.ClassNotFoundException: CommandTest
at ... (bunch of java.lang, java.net places)
I am sure I am doing something simple and stupid wrong my book and the online stuff I've seen seems to be very brief and doesn't really have troubleshooting. Quick help is greatly appreciated!

New Topic/Question
Reply




MultiQuote






|