posted 18 years ago
You're compiling with the javac from JDK 6, but running with an older version of Java. This often happens because Java installers will sometimes, but not always, put a copy of java.exe into c:\WINDOWS\ (or some equivalent) to support the Java Plugin. Either find that extra java.exe and replace it, or replace it with java.exe from JDK 6, or change your PATH environment variable to put the Java 6 bin directory first, or use an explicit path to invoke java.exe from that directory... etc.