Configuring old versions of CodeWarrior
It is not the case that versions 6 and 7 of Metrowerks CodeWarrior can successfully
convert version 8 projects. You will have to make a new, equivalent, project using
your old version of CodeWarrior in order to use your software. Follow these steps
to do so:
-
Install the Java SDK, CodeWarrior, and jpt.jar as described in the help file found
here.
-
Download the homework assignment, and decompress the archive if necessary.
-
Double-click on the project file to start CodeWarrior.
-
Agree to let the project be converted, even though the converted project is useless.
-
Create a new CodeWarrior project:
- Select File->New on the menu.
- Choose Java Stationery or J2SE Stationery.
- Choose a directory for the new project and its files.
- Select Application from the Generic group, or the most recent JDK group.
-
Select the Targets tab and delete the target whose name ends in Debug.
-
Select the Files tab and delete the file TrivialApplication.java.
-
Delete TrivialApplication.java from the project directory on disk.
-
Copy all of the files included in the homework assignment archive,
except for the old and the converted CodeWarrior project files (.mcp),
to the directory for the new project.
-
Select Project->Add Files from the menu, and add jpt.jar from
Java_Support/Libraries/ in your CodeWarrior directory.
-
Select Project->Add Files from the menu, and add all of the Java source
files (.java) for the assignment, from the location of the new project,
not the directory created by the homework assignment archive.
-
Group the files into groups in the Files tab, if you like, using the
original project for the assignment as a guide.
-
Set the following Project Settings to the same settings found
in the original project:
- Target Name in Target->Target Settings.
- Target Type and Main Class in Target->Java Target.
- Output Type and Name in Linker->Java Output.
-
Close the old, converted, project and use the new project.
-
Delete the project directory made by the homework assignment archive,
to avoid confusion.