Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java.util.scanner
Java.util.scanner [message #69552] Thu, 26 May 2005 04:15 Go to next message
Eclipse UserFriend
Originally posted by: jani215.nocharge.zzn.com

Hi,

I am learning Java in school. I have loaded the program on my system, and
most everything seems to be working fine.

However, I am unable to find java.util.scanner. I have downloaded the
example files, I have searched other areas on this site for help, and not
found what I am looking for. The first java.util. in the s's is
simpleTimeZone. I get this error message when I try to use scanner:
Kind Status Priority Description Resource In Folder Location
Error The import java.util.scanner cannot be
resolved PracticeMethods.java FirstProgram line 8
Where can I find this file? Please help.

Thanks,

Jan Morley
Re: Java.util.scanner [message #69572 is a reply to message #69552] Thu, 26 May 2005 05:29 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
java.util.Scanner is in Java 1.5 (or 5.0 ...depending on who you ask). You
are likely compiling against 1.4.*?

You will need to set up a 1.5/5.0 project to compile against the system
libraries of this Java release.

HTH
Darins

"Jan Morley" <jani215@nocharge.zzn.com> wrote in message
news:6fe4213de11f380fcb3593c13154e4db$1@www.eclipse.org...
> Hi,
>
> I am learning Java in school. I have loaded the program on my system, and
> most everything seems to be working fine.
> However, I am unable to find java.util.scanner. I have downloaded the
> example files, I have searched other areas on this site for help, and not
> found what I am looking for. The first java.util. in the s's is
> simpleTimeZone. I get this error message when I try to use scanner: Kind
> Status Priority Description Resource In Folder Location
> Error The import java.util.scanner cannot be resolved PracticeMethods.java
> FirstProgram line 8
> Where can I find this file? Please help.
>
> Thanks,
>
> Jan Morley
>
Re: Java.util.scanner [message #69592 is a reply to message #69572] Thu, 26 May 2005 04:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jani215.nocharge.zzn.com

Hi,

I am not sure. I am running Websphere 5.1.0. In Websphere, it says that
my Eclipse Java Development Tools are 2.1.1. Does this answer your
question?

Jan Morley
Re: Java.util.scanner [message #69751 is a reply to message #69592] Thu, 26 May 2005 05:39 Go to previous messageGo to next message
Philippe Ombredanne is currently offline Philippe OmbredanneFriend
Messages: 386
Registered: July 2009
Senior Member
"Jan Morley" <jani215@nocharge.zzn.com> wrote in message
news:a0cc38499076b865b25f10b0bc532622$1@www.eclipse.org...
> I am not sure. I am running Websphere 5.1.0. In Websphere, it says that
> my Eclipse Java Development Tools are 2.1.1. Does this answer your
> question?
You will need a 5.0 JDK and the latest milestone 3.1 m7 to play seriously
with Java 5.
You are ruunig on an old 2.xx version.
Re: Java.util.scanner [message #69981 is a reply to message #69751] Thu, 26 May 2005 20:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jani215.nocharge.zzn.com

How do I get the newer version of Java? When I started this class I
downloaded Java from the Sun Microsystem website. Shouldn't that be the
latest version?

Please let me know how to update my Java.

Thanks,

Jan Morley
Re: Java.util.scanner [message #70061 is a reply to message #69981] Thu, 26 May 2005 22:02 Go to previous messageGo to next message
Adam Kiezun is currently offline Adam KiezunFriend
Messages: 219
Registered: July 2009
Senior Member
Jan Morley wrote:
> How do I get the newer version of Java? When I started this class I
> downloaded Java from the Sun Microsystem website. Shouldn't that be the
> latest version?
>
> Please let me know how to update my Java.
>
> Thanks,
>
> Jan Morley
>

c'mon, download it from sun.
http://java.sun.com/j2se/1.5.0/download.jsp

/adam
Re: Java.util.scanner [message #70140 is a reply to message #70061] Thu, 26 May 2005 23:35 Go to previous message
Eclipse UserFriend
Originally posted by: jani215.nocharge.zzn.com

Thank you for your help!

Jan Morley
Previous Topic:Eclipse Plug in
Next Topic:Redefining word boundary for Alt-/
Goto Forum:
  


Current Time: Sat Jul 13 22:56:58 GMT 2024

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

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

Back to the top