This discussion is archived
3 Replies Latest reply: Dec 28, 2012 2:34 AM by gimbal2 RSS

Help with intalling JDK (and running it)

981954 Newbie
Currently Being Moderated
Just downloaded and installed the JDK....
Added path in environmental variables.....
Created a quick simple java program....
Compiled it with no issues....
But can't run it with Java.

I type in "c:\Java>java welcome" and get:

Exception in thread "main" java.lang.NoClassDefFoundError: welcome (wrong name: Welcome)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unkwone Source)
etc......

Any help is appreciated

Thanks

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points