Page 1 of 1

Java class file wrong version

Posted: Tue Sep 27, 2005 2:17 pm
by adwpye
In a programming class at FSC, instructor cannot figure out the problem so I came here. This is the problem...

When I try and compile my program in TextPad, I get this error:

\\csstudents3\csusers\apye\CSC1500\CSC1500\src\csc1500\MenuProgram.java:8: cannot access java.util.Scanner
bad class file: C:\Program Files\Java\jre1.5.0_02\lib\rt.jar(java/util/Scanner.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.util.Scanner;
^
1 error

Tool completed with exit code 1

Posted: Tue Sep 27, 2005 5:27 pm
by s_reynisson
Google has a lot to offer on this, here's one link.
http://forum.java.sun.com/thread.jspa?t ... 5&tstart=0
HTH