UNABLE TO COMPILE JAVA CODE

I have previous version of java jdk1.4.2_07 and i already uninstall it. Now i installed the jdk1.5.0_08 version and it is installed successfully. I also already set the class path as C:\Program Files\Java\jdk1.5.0_08\bin in environmental variables. My OS is Windows XP SP2.

Problem occured when i just try to create a simple system.out.println() program. The file name is test.java

Below is the code :

public class testing

{

public static void main(String args[])

{

System.out.println("TESTING");

}

}

Problem occured when i try to compile my test program under command prompt.

When i typed "javac test.java" it provide me error message that i am totally don't understand.

The error message is:

*****************************************************************************

test.java:3: cannot access java.lang.Object

bad class file: C:\Program Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Object.class)

class file has been wrong version 49.0, should be 48.0

Please remove or make sure it appears in the correct subdirectory of the classpath.

public static void main(String args[])

1 error

**************************************************************************

What does it mean? Please help me.. I already do java -version and it appear that my java version is 1.5.0_08 version and everything is successfully. I tried it at my home pc and it can run smoothly. I did not do anything.

below is message occured when i typed java -version:

java version "1.5.0_08"

java(TM) 2 runtime environment, Standard edition (build 1.5.0_08-b03)

java hotspot(TM) client VM (build 1.5.0_08-b03), mixed mode, sharing)

Please help me... it is very urgent... thanks very much

[1834 byte] By [asumotoa] at [2007-10-3 5:28:44]
# 1
What is the version of javac?(Also public class testing should go in a file called testing.java - In factTesting with an upper case 'T' is better).
pbrockway2a at 2007-7-14 23:36:07 > top of Java-index,Core,Monitoring & Management...
# 2
the javac version is bundled in the jdk1.5.0_08 which i download from this website. i still can not solve this problem..... what should i do with this error message?
asumotoa at 2007-7-14 23:36:07 > top of Java-index,Core,Monitoring & Management...
# 3
> > What is the version of javac?> the javac version is bundled in the jdk1.5.0_08 which i download from this > website. I meant what version does javac report?
pbrockway2a at 2007-7-14 23:36:07 > top of Java-index,Core,Monitoring & Management...
# 4

the error it is showing makes me thing that all you have in the folder you are trying to compile from is just the javac.exe, you should have it in your folder C:\program files\java\jdk1.5.0\bin\ and there should be tons of files here, either that or copy everything there into the folder where you would rather compile from... without all those things and the lib folder inside C:\program files\java\jdk1.5.0\ you won't have the commonly used java objects like System.out.println and all those other things.

~Kale

Calibre_Kalea at 2007-7-14 23:36:08 > top of Java-index,Core,Monitoring & Management...