SDK and IDE FAQs Java Methods Home Page Skylight Publishing



How to Set Up the GridWorld Case Study in JCreator

  1. Download from AP Central or collegeboard.com the zipped file that contains GridWorld's code and copy the GridWorldCode folder from the zipped file into a folder of your choice (e.g., into C:\APCS) to obtain C:\APCS\GridWorldCode).  This folder contains gridworld.jar and several Java source files in the framework and projects subfolders.  Keep all these files intact, never change them, and never place anything else into the GridWorldCode folder or its subfolders.

  2. Create a folder for keeping your GridWorld work (e.g., C:\mywork\GridWorld).

  3. In JCreator, create a blank workspace located in C:\mywork\GridWorld and add an empty project to that workspace (see the Workspaces and Projects section in How to use JCreator).

  4. Add C:\APCS\GridWorldCode\projects\firstProject\BugRunner.java or another "runner" class to the project (go to Project/Add files... or click on the Add Files button, navigate to the desired folder and add the desired file.

  5. Add C:\AP\GridWorld\Code\gridworld.jar file to the project (see the Adding jar Files to Projects section in How to use JCreator).  You can simply add the jar file to the project but it is better to define and name a library containing gridworld.jar once, and check it as a "required library" in each new GridWorld project.

  6. Compile and run your project.


Skylight Publishing
support@skylit.com