From: SourceForge.net <no...@so...> - 2003-06-19 18:15:50
|
Bugs item #757409, was opened at 2003-06-19 13:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=757409&group_id=44253 Category: Interactions Group: Serious Status: Open Resolution: None Priority: 5 Submitted By: Dave Musicant (musicant) Assigned to: Nobody/Anonymous (nobody) Summary: Marine Biology Case Study problems Initial Comment: I am experiencing the following "show stopper" behavior with the Advanced Placement Marine Biology Case Study, with all recent versions of DrJava as well as the last stable release, under JDK 1.4.1_03. Here is my sample program: class ExerciseSet1 { public static void main(String[] args) { BoundedEnv env = new BoundedEnv(20,20); Location loc1 = new Location(7,3); Location loc2 = new Location(7,4); Direction dir1 = env.getDirection(loc1,loc2); } } This code compiles just fine. When I try to run it in the Interactions Pane by saying "java ExerciseSet1", I get the error: "Error: Undefined class 'ExerciseSet1'" This error goes away if I comment out the last line of my sample program, i.e. the one that runs the getDirection method. The code also runs just fine if I use different methods in the BoundedEnv class instead, such as env.numCols(). The only difference that I can see between these methods and getDirection is that the getDirection method is not explicitly contained in the BoundedEnv, but is instead inherited from the abstract superclass SquareEnvironment. I have my classpath in DrJava set up to include the two jar files provided by the Marine Biology case study, namely mbsgui.jar and mbsbb.jar. The code for BoundedEnv is explictly provided, but SquareEnvironment is provided as "black box" code and only its compiled class file is provided in mbsbb.jar. The above code runs just fine both from the command line and within JCreator. Could this be a problem with Dynamic Java? The above code is a fragment of the very first program that the students are asked to write within the case study. I have included the zip file containing the Marine Biology Case Study, which is also available for download from the College Board. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=757409&group_id=44253 |