3 Replies Latest reply: Dec 28, 2012 4:34 AM by gimbal2 RSS

    Help with intalling JDK (and running it)

    981954
      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