Java class file wrong version
Posted: Tue Sep 27, 2005 2:17 pm
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
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