PDA

Click to See Complete Forum and Search --> : What does cannot resolve symbol


tmlucky14
Sep 22nd, 2006, 01:53 PM
I am trying to run my Java program and it keep giving me a error.

Deli.java:11: cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner;

Please tell me what that means. Thanks

ComputerJy
Sep 22nd, 2006, 04:32 PM
It means you don't have JDK 1.5 or later installed correctly on your PC

eranga262154
Sep 23rd, 2006, 12:35 AM
It means you don't have JDK 1.5 or later installed correctly on your PC

Exactly this is correct. I got the same error when i'm start to lern java. But i'm confusing with your answer.

How did you say that this is JDK 1.5 ?

ComputerJy
Sep 23rd, 2006, 07:13 AM
Because the class "java.util.Scanner" didn't exist in old versions of java (look at the documentation (http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html))
It says "Since 1.5" there

eranga262154
Sep 25th, 2006, 01:04 AM
Thanks