Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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
Caused by: java.lang.ClassNotFoundException: NextDay2
at java.security.AccessController.doPrivileged(Native Method)
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.