Java class file wrong version

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
adwpye
Posts: 1
Joined: Tue Sep 27, 2005 2:13 pm

Java class file wrong version

Post 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
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply