-
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.
-
Create a folder for keeping your GridWorld work (e.g.,
C:\mywork\GridWorld).
-
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).
-
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.
-
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.
-
Compile and run your project.
|