[Bluej-discuss] Excercise 1.17

Bryan J Higgs bhiggs at rivier.edu
Sun Sep 9 23:59:49 BST 2007


You also need to tell BlueJ to use JDK 1.6.

In the BlueJ directory/folder, there's an application called "Select VM"
. If you activate this, it brings up a dialog that will look something like:



You select the appropriate item, and then click on Launch BlueJ.  It
should set the appropriate Java Virtual Machine to use from that point on.

Good luck!

Bryan

*/Dr. Bryan J. Higgs
Associate Professor
Dept. of Mathematics & Computer Science
Rivier College
420 Main St.
Nashua, NH 03060/*



Daniel Farmer, Esq. wrote:
> Hi Bryan thanks for the comments. Although I installed JDK 1.6 and its
> still showing up with that error upon attempted compilation.
>
>
> ----Original Message Follows----
> From: Bryan J Higgs <bhiggs at rivier.edu>
> Reply-To: General discussion for users of BlueJ <bluej-discuss at bluej.org>
> To: General discussion for users of BlueJ <bluej-discuss at bluej.org>
> Subject: Re: [Bluej-discuss] Excercise 1.17
> Date: Fri, 07 Sep 2007 12:50:21 -0400
>
> My guess is that you are using a Java Development Kit earlier than JDK
> 1.5
>
> You really need to have BlueJ use either JDK 1.5 or 1.6 to use what are
> called Generics (the <Student> construct).
>
> Good luck!
>
> */Dr. Bryan J. Higgs
> Associate Professor
> Dept. of Mathematics & Computer Science
> Rivier College
> 420 Main St.
> Nashua, NH 03060/*
>
>
>
> Daniel Farmer, Esq. wrote:
> > Ok I load the lab-classes project ( I started excercise 1.17 ) and get
> > errors on compiling it.
> >
> > It gives me an error on the following line ( SEE BELOW ) in the
> LabClass
> > class...
> >
> > ANY IDEA HOW TO FIX? or is there an updated file?
> >
> >
> > import java.util.*;
> >
> > /**
> > * The LabClass class represents an enrolment list for one lab class. It
> > stores
> > * the time, room and participants of the lab, as well as the
> instructor's
> > name.
> > *
> > * @author Michael Kolling and David Barnes
> > * @version 2006.03.30
> > */
> > public class LabClass
> > {
> >     private String instructor;
> >     private String room;
> >     private String timeAndDay;
> >     private List <Student> students;     // ERROR HIGHLIGHTED HERE
> > <IDENTIFIER> EXPECTED
> >     private int capacity;
> >
> > _________________________________________________________________
> > Enter to win a night a VIP night out at TIFF
> > http://redcarpet.sympatico.msn.ca/
> >
> > _______________________________________________
> > mailing list 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
>
> _________________________________________________________________
> Former Police Officer Paul Gillespie’s TAKE BACK THE INTERNET tips and
> tricks, watch the video now  http://safety.sympatico.msn.ca/
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 9/9/2007 10:17 AM
>   


More information about the bluej-discuss mailing list