Java for Project 1
Since the architecture source codes and your group's codes are found in two separate directories, here is some help on how to compile and run your project. But first, it is a good software development style to also have a separate directory for your executables. In this way, you won't inadvertently check into your CVS directory all .class files.
NOTE:
- Please refer to CVS for Project 1 page, if you forget what a working root means.
- Here I use the name your_working_root_path to refer to the path of your working root from your home directory.
- In all the commands below, I put in italic face the part you need to change.
Creation of an executable directory
Go to your working root:
cd ~/your_working_root_path/
Create the directory (I would use the name bin)
Compilation
Remember from the CVS for Project 1 page that you should work under your working directory. You must be in this directory while compiling.
javac -classpath .:/home/users/your_login_name/your_working_root_path/project1_base -d /home/users/your_login_name/your_working_root_path/bin java_code.java
Execution
When you are ready to execute, got to your bin directory and run your Java code from there.
NOTE:
It is a good idea to always delete everything under your bin directory after you have checked in your work to your CVS group repository.