trouble running my first java program

here is the code which i saved as C:\OurFirstProgram.java:

import java.lang.System;

public class OurFirstProgram

{

public static void main(String[] args)

{

System.out.println("TESTING");

}

}

next i ran javac C:\OurFirstProgram.java

finally i ran java C:\OurFirstProgram

and it returned "Exception in thread "main" java.lang.NoClassDefFoundError: C\OurFirstProgram.

Do you know what is wrong and how i can fix it. I installed JDK 1.3.1

[528 byte] By [bunchofpixels] at [2007-9-26 4:21:00]
# 1

You don't need to give c:\

you should do as follow steps:

> c:

> cd \

> javac OurFirstProgram.java

> java OurFirstProgram

Java compile was looking a class called C:\OurFirstProgram

when you used "java C:\OurFirstProgram"

KellanMom at 2007-6-29 17:24:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
Just type java OurFirstProgramm at the prompt.
TQnguyen at 2007-6-29 17:24:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
make sure you put OurFirstProgram and not ourfirstprogram, I'm going to complian about how java is so picky about letter cases, everyone messes it up all the time and other programs don't mid which case they are in.Shish
shishthemoomin at 2007-6-29 17:24:41 > top of Java-index,Archived Forums,New To Java Technology Archive...