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

