[Bluej-discuss] import java.util.*; - problem
Bryan J. Higgs
BryanHiggs at yahoo.com
Sun Dec 2 01:01:36 GMT 2007
Jakub --
It's possible to have more than one Java Development Kit installed on a
system at the same time.
(Note you need the JDK, not just the JRE, the Java Runtime Environment.)
You have to tell BlueJ which JDK to use. In the folder where the BlueJ
executable is installed, you should also see an executable called
"Select VM". If you run that, it will list the versions of JDK it has
found, and will allow you to choose one of them. Be sure that you
choose one that is at least at v1.5 . Probably you should choose the
highest version number on your machine.
I see this on my Windows system. I think it should also be the case for
other systems, but I'm not sure, not having any other systems to work on.
I hope this solves your problem!
Regards
Bryan
Jakub Horbacewicz wrote:
> Hello,
>
>
> My guess is that you have Java 1.4 (or earlier) installed. It won't
> work with that version. You should download and install a newer Java
> version.
>
>
> Unfortunately I use 1.6.0... (Java Version 6 Update 3) so I cannot
> find out what the problem is...
>
>
> On 1 Dec 2007, at 18:12, Jakub Horbacewicz wrote:
>
> > Hi,
> >
> > I read Object First in Java and I do the excercise no 1-19 (lab-
> > classes). Unfortunately while compiling the LabClass class, BlueJ
> > show me that "<identifier> expected" in line:
> >
> > private List<Student> students;
> >
> > Is it connected with import java.util.*; (it's look like BlueJ do
> > not understand this statement...)
> >
> > Help me
> > _______________________________________________
> > mailing list bluej-discuss at bluej.org
> <mailto:bluej-discuss at bluej.org>
> > To unsubscribe or change your preferences, go to
> > http://lists.bluej.org/mailman/listinfo/bluej-discuss
> <http://lists.bluej.org/mailman/listinfo/bluej-discuss>
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org <mailto:bluej-discuss at bluej.org>
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
More information about the bluej-discuss
mailing list