try running your code thru command line
C:\>javac Test.java
C:\>java Test
if javac cannot be found then set your system path to C:\Program Files\Java\jdk1.5.0_02\bin or what version you have.
im guessing Eclipse is still pointing to the older version of java. try checking to see that it is using the new javac.
btw i dont know much about java.