Re: Problems with Scanner class in Blackdown JDK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/4/06, Mac <macduineabhan@xxxxxxxxx> wrote:
> 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

Try Sun's JDK.

--
Yawar
Malaysia +60 (12) 918 6642
Bangladesh +880 (174) 614 754 or +880 (2) 882 1848 or +880 (175) 003
706 or +880 (189) 250 170
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux