Hi everyone,
ive had this problem for a while and i cant seem to figure out why. I am using eclipse to create my java code. When import the Scanner class, create a new object and so on... eclipse compiles the code without problem, BUT, when i try to run the same code from command line, i get this error:
Greeting.java:24: cannot resolve symbol
symbol : class Scanner
location : package util
import java.util.Scanner;
Greeting.java:89 cannot resolve symbol
symbol : class Scanner
location : class Greeting Scanner kb = new Scanner<System.in>;
Greeting.java:89: cannot resolve symbol
symbol : class Scanner
location: class Greeting Scanner kb = new Scanner<System.in>;
3 errors
any ideas? FYI, im running java version 6.0, j2sdk1.4.2_13 and 1.4.2_18
thx