Skip to main content



      Home
Home » Newcomers » Newcomers » Java Method Recognition
Java Method Recognition [message #113429] Mon, 31 October 2005 19:46 Go to next message
Eclipse UserFriend
Originally posted by: kbs26.drexel.edu

I am new to eclipse and I tried using this java method "Scanner keyboard =
new Scanner(System.in); " and eclipse gave this error "Scanner cannot be
resolved to a type
". If anyone has an idea on how to fix this please let me know.
Re: Java Method Recognition [message #113469 is a reply to message #113429] Mon, 31 October 2005 23:18 Go to previous message
Eclipse UserFriend
Originally posted by: akiezun.remove.mit.edu

Karfar wrote:
> I am new to eclipse and I tried using this java method "Scanner keyboard
> = new Scanner(System.in); " and eclipse gave this error "Scanner cannot
> be resolved to a type
> ". If anyone has an idea on how to fix this please let me know.
>

it seems you're linking against JDK 1.4 instead of 1.5.
Switch the jdk (see project properties > java build path)

/adam
Previous Topic:debugger cannot locate source file
Next Topic:pserver vs extssh
Goto Forum:
  


Current Time: Mon Nov 10 10:30:57 EST 2025

Powered by FUDForum. Page generated in 0.24282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top