...
- A well-defined directory (folder) structure:
- Project directory, containing the DrJava project file and below it:
- "
src
" -- the "source" directory which holds the "XXX.java
" files - "
classes
" or "bin" directory which holds the compiled "XXX.class
" files
- "
- Project directory, containing the DrJava project file and below it:
- The DrJava ("
XXX.drjava
") file, which holds the information about what files are in the project and other project-related data.
...
- On your hard disk, create a folder to hold your project, e.g. "
Lab09
". It's easiest to build the "src
" and "classes
" subdirectories at this point, or you can wait until step 4 below. - Click on
Project/New
- Browse to the project folder and save your DrJava project file with an appropriate name, e.g. "
Lab09.drjava
" (DrJava will automatically add the file extension). - In the
Project Properties
dialog that comes up, fill out the following fields. You will need to click the "...
" button to browse to and create the directories if they do not already exist.Wiki Markup {{Project Root}} = {{\[project folder\]\src}} e.g. "{{U:\Comp211\Lab09\src}}"
Wiki Markup {{Build Directory}} = {{\[project folder\]\classes}} e.g. "{{U:\Comp211\Lab09\classes}}"
Wiki Markup {{Working Directory}} = {{\[project folder\]\classes}} e.g. "{{U:\Comp211\Lab09\classes}}"
- Leave the rest of the fields blank for now and click "
Ok
"
To open a project, click on "Project/Open...
" in DrJava and browse to your XXX.drjava
project file. If your computer is set up to do it, you might also be able to automatically open a DrJava project by simply double-clicking the project file.
...