* Problems with Scanner class in Blackdown JDK
2006-03-28 5:20 Printing with Kernel 2.6.14.4 Ray Olszewski
@ 2006-04-04 3:28 ` Mac
2006-04-05 6:26 ` Yawar Amin
0 siblings, 1 reply; 5+ messages in thread
From: Mac @ 2006-04-04 3:28 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with Scanner class in Blackdown JDK
2006-04-04 3:28 ` Problems with Scanner class in Blackdown JDK Mac
@ 2006-04-05 6:26 ` Yawar Amin
0 siblings, 0 replies; 5+ messages in thread
From: Yawar Amin @ 2006-04-05 6:26 UTC (permalink / raw)
To: linux-newbie
On 4/4/06, Mac <macduineabhan@yahoo.com> 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@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with Scanner class in Blackdown JDK
@ 2006-04-06 22:05 Mac
2006-04-08 7:45 ` Yawar Amin
0 siblings, 1 reply; 5+ messages in thread
From: Mac @ 2006-04-06 22:05 UTC (permalink / raw)
To: linux-newbie
I switched to Sun's JDK, and I'm still having the same
problem. What can you recommend?
Mac
> --- Yawar Amin <yawar.amin@gmail.com> wrote:
>
> >
> > Try Sun's JDK.
> >
> > --
>
>
> > On 4/4/06, Mac <macduineabhan@yahoo.com> 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.
>
> > > 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.*;
> > >
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with Scanner class in Blackdown JDK
2006-04-06 22:05 Problems with Scanner class in Blackdown JDK Mac
@ 2006-04-08 7:45 ` Yawar Amin
2006-04-13 0:04 ` Mac
0 siblings, 1 reply; 5+ messages in thread
From: Yawar Amin @ 2006-04-08 7:45 UTC (permalink / raw)
To: linux-newbie
On 4/7/06, Mac <macduineabhan@yahoo.com> wrote:
> I switched to Sun's JDK, and I'm still having the same
> problem. What can you recommend?
>
> Mac
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html says
java.util.Scanner has only been present in the API since version 1.5.
You need to use the latest version of the 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@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with Scanner class in Blackdown JDK
2006-04-08 7:45 ` Yawar Amin
@ 2006-04-13 0:04 ` Mac
0 siblings, 0 replies; 5+ messages in thread
From: Mac @ 2006-04-13 0:04 UTC (permalink / raw)
To: linux-newbie
I figured out that the problem was that my system
wasn't using Sun's JDK as the default, even though it
said it was using Sun's JVM. I ended up having to do
a few things manually, instead of using the Gentoo
java-config tool, and it finally worked.
Thanks for the help!
Mac
>
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
> says
> java.util.Scanner has only been present in the API
> since version 1.5.
> You need to use the latest version of the JDK.
>
> --
__________________________________________________
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-13 0:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-06 22:05 Problems with Scanner class in Blackdown JDK Mac
2006-04-08 7:45 ` Yawar Amin
2006-04-13 0:04 ` Mac
-- strict thread matches above, loose matches on Subject: below --
2006-03-28 5:20 Printing with Kernel 2.6.14.4 Ray Olszewski
2006-04-04 3:28 ` Problems with Scanner class in Blackdown JDK Mac
2006-04-05 6:26 ` Yawar Amin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox