Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-20-2007, 03:18 PM   #1 (permalink)
Rotkiv
Code Monkey
 
Rotkiv's Avatar
 
Join Date: Apr 2004
Location: Silicon Valley, CA
Posts: 59
Rotkiv is on a distinguished road
Send a message via AIM to Rotkiv Send a message via MSN to Rotkiv
Scanner issue

hey, I'm having an issue. my compiler is not finding the scanner class. obviously it's finding other classes in the util package. This isn't the computer i normally work on, but if i did something special to get scanner on my normal computer, i don't remember it.

Code:
 cannot resolve symbol
symbol  : class Scanner 
location: package util
import java.util.Scanner;
thanx.
Rotkiv is offline   Reply With Quote
Old 12-20-2007, 06:03 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
First off, what version of Java are you running? Scanner is a recent addition to Java. Type "java -version" on the command line. If it's before 1.5, it won't include Scanner.

If it's 1.5 or later, post your source code - it's probably a syntax error.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 04-03-2008, 01:00 PM   #3 (permalink)
Rotkiv
Code Monkey
 
Rotkiv's Avatar
 
Join Date: Apr 2004
Location: Silicon Valley, CA
Posts: 59
Rotkiv is on a distinguished road
Send a message via AIM to Rotkiv Send a message via MSN to Rotkiv
well didn't end up getting back to this for a while.
but damn, it turns out you were right, i had version 1.4 something or other.

lesson: first result on google doesn't link to latest java release.
Rotkiv is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX n00b (Pretty involved issue, here!) l33t_1-1axx0r HTML, XML, Javascript, AJAX 4 02-23-2006 09:35 AM
Issue implementing algorithm of Lempel Ziv napsak Standard C, C++ 12 04-29-2005 06:58 AM
Pen-size scanner captures full pages redhead Code Newbie News 0 09-27-2004 06:59 AM
perplexing issue with some calculations sarah31 PHP 9 07-12-2004 09:43 AM


All times are GMT -8. The time now is 01:46 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting