Compilation problem with update to Java 1.5

Hi, im doing my final project at uni, was using java 1.4 fine, then it came i needed the class Scanner, and thus needed 1.5, so i downloaded the update and it came up with 100 errors saying "unable to open .class file [filename].class. What on earth do i do? I tried uninstalling everything and trying again, that didnt work. Then i tried downloading teh latest EE, that didnt work at all. Now i dont know what to do, please help

[436 byte] By [Paddya] at [2007-10-2 12:58:57]
# 1
download the java1.5.0 JDK.install it, then try compiling and tell us what happens.
Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 2

> Hi, im doing my final project at uni, was using java

> 1.4 fine, then it came i needed the class Scanner,

> and thus needed 1.5, so i downloaded the update and

> it came up with 100 errors saying "unable to open

> .class file [filename].class. What on earth do i do?

What is giving that message? Your IDE?

Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 3
shall i uninstall everything first? Ive got the file "jdk-1_5_0_06-windows-i586-p" thats the right one yeah?
Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 4
yes it was codewarrior giving me that message when i tried to compile
Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 5

> shall i uninstall everything first?

well, only uninstall another jdk you have installed. don't uninstall your ide, or windows, or something.

> Ive got the file

> "jdk-1_5_0_06-windows-i586-p" thats the right one

> yeah?

i don't know but im' going to say yes. is it about 50meg? if so, then yes.

Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 6

just re downloaded and reinstalled jdk 1.5 update 6 after uninstalling the otehr sdk, and im still getting the error when i go to compile and run my code it says it cannot find a 100 classes, including animation.class, animationframe.class all in alphabetical order. Its like its not finding part of the library or something

Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 7
now its giving me errors such as invalid class file format, java.lang.object, wrong version 49: expected 47HELPPPPPP
Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...
# 8

> now its giving me errors such as invalid class file

> format, java.lang.object, wrong version 49: expected

> 47

>

> HELPPPPPP

hrm.

i've never used an ide, so i don't really know, maybe there is a way to "clean" your build or something?

at least try compiling via the command line:

javac MyClass.java

java MyClass

Paddya at 2007-7-13 10:17:24 > top of Java-index,Java Essentials,Java Programming...