You get that error message when you compile with 1.7 and execute with 1.6
Try to use the save version of the java program as the javac program.