Java not finding main class?

Hi all. I'm a java student and am trying to work through debugging a program. I thought I was about there when I tried to run it and got the "can't find main class" error. I'm not sure even what the nature of the problem could be, so I'll paste the compiler error message below and attach the code. Thanks in advance...

----jGRASP exec: java NextDay2

java.lang.NoClassDefFoundError: NextDay2
Caused by: java.lang.ClassNotFoundException: NextDay2
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
Could not find the main class: NextDay2. Program will exit.
Exception in thread "main"
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!