Scanner class library - Error

When I compile the mbare_projectOne.java I get the following error. There is a "^" under both the "S" of the word Scanner.

G:\CS 151\mbare_projectOne.java:31: cannot resolve symbol

symbol : class Scanner

location: class mbare_projectOne

Scanner keyboard = new Scanner(System.in);

^

G:\CS 151\mbare_projectOne.java:31: cannot resolve symbol

symbol : class Scanner

location: class mbare_projectOne

Scanner keyboard = new Scanner(System.in);

^

2 errors

It is my understanding that the java.util.*; library has the Scanner class. Below is what I have for the program, everything checks out good but for the "Scanner".

/* establish keyboard input */

Scanner keyboard = new Scanner(System.in);

* edit: took out all the unnecessary lines, just need to figure out why i'm getting the Scanner error.

Message was edited by: mlorente

mlorente

[941 byte] By [mlorentea] at [2007-10-2 20:22:35]
# 1

Fixed the error... it was a classpath issue.

Went to "My Computer", then selected "View System Information". Clicked the "Advanced" tab and selected "Envrionment Variables" button. There was 2 window panes, and I deleted any reference of CLASSPATH variable. I rebooted and everything began to compile.

mlorente

mlorentea at 2007-7-13 23:05:15 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...