public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Mac <macduineabhan@yahoo.com>
To: linux-newbie@vger.kernel.org
Subject: Problems with Scanner class in Blackdown JDK
Date: Mon, 3 Apr 2006 20:28:56 -0700 (PDT)	[thread overview]
Message-ID: <20060404032856.93706.qmail@web37814.mail.mud.yahoo.com> (raw)
In-Reply-To: <4428C787.50804@comarre.com>

I'm currently using the most recent release of the
Gentoo kernel, version 2.6.15.  The JDK I am using is
Blackdown 1.4.2.03.

Right now I'm taking a college java course, and I'm
trying to get my java up and running so I can do
homework outside of the labs.  The IDE I am supposed
to be using for the class is Bluej (which I have
installed), although I have duplicated the problems I
have been having on Netbeans as well.

Basic java programs seem to compile just fine, but I
have trouble whenever I try to use certain import
statements, specifically with the Scanner class.  For
example:

import java.util.Scanner;
  (error message: cannot resolve symbol - class
Scanner)

-- the same error message occurs with 
import java.util.*;

This class is VERY important to have for my course, as
a large number of the projects we have utilize it. 
The course I'm taking uses it to get keyboard input.
(example: Scanner keyboard = new Scanner(System.in);
 int exampleInt = keyboard.nextInt(); // reads in an
integer using the new Scanner object, keyboard)

The computers at the campus labs are Windows-based.
However, java is very portable, and I have no problems
writing a program in the Linux Bluej, then e-mailing
it to myself and opening in the Windows Bluej on
campus.  The programs written in Linux compile in
Windows, even when they don't compile in Linux.  While
I can still keep doing it this way, it would be nice
to be able to test and debug my projects BEFORE I get
to class, if you know what I mean.

--  Does anyone have a suggestions as to why I might
be getting this message?
--  I know that Java is fairly portable, but is it
possible that the Scanner class is not available for
Linux?

A bit of info:

mycomputer / # java-config -v    #version of JVM
java version "1.4.2-03"
Java(TM) 2 Runtime Environment, Standard Edition
(build Blackdown-1.4.2-03)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03,
mixed mode)

Any help would be appreciated.  Thanks!

Mac




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  parent reply	other threads:[~2006-04-04  3:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-25  1:58 Printing with Kernel 2.6.14.4 heisspf
2006-03-26 18:55 ` Hal MacArgle
2006-03-28  2:59   ` Peter
2006-03-28  5:20     ` Ray Olszewski
2006-03-28  8:09       ` Peter
     [not found]         ` <200603280742.21986.david@fierbaugh.org>
2006-03-29  3:55           ` Peter
2006-04-04  3:28       ` Mac [this message]
2006-04-05  6:26         ` Problems with Scanner class in Blackdown JDK Yawar Amin
  -- strict thread matches above, loose matches on Subject: below --
2006-04-06 22:05 Mac
2006-04-08  7:45 ` Yawar Amin
2006-04-13  0:04   ` Mac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060404032856.93706.qmail@web37814.mail.mud.yahoo.com \
    --to=macduineabhan@yahoo.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox