public class WhatsGood
{
public static void main (String[ ] args)
{
System.out.println ("Whats goin on?");
}
}
I am taking my first class on Java programming. Unfortunately my professor is of little help as he does not have much time to work with students. We are supposed to write this code then compile it. (which works fine) and then we are supposed to run it. When I try to run this program here is what comes up on my Command Prompt window.
C:\Documents and Settings\Alex (geo)\Desktop>java WhatsGood Exception in thread "main" java.lang.NoClassDefFoundError: WhatsGood Caused by: java.lang.ClassNotFoundException: WhatsGood at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) C:\Documents and Settings\Alex (geo)\Desktop>javac WhatsGood.java
Any help would be greatly appreciated....
Thanks So much

New Topic/Question
Reply



MultiQuote






|