| CSC 207 | Algorithms and Object Oriented Design | Spring 2011 |
Summary: In this lab, we will download, organize, and compile the standard code accompanying our textbook.
mkdir somewhere/book
cd somewhere/book
wget http://users.cs.fiu.edu/~weiss/dsj4/code.zip
unzip code.zip
code directory:
cd code
src:
mkdir src
src:
mv *.java src mv weiss src
code directory (not the src directory)
cp ~weinman/public_html/courses/CSC207/2011S/labs/code/bookcode/build.xml .
antThis should create a directory
class where it stores
all the compiled class files.
cp ~weinman/public_html/courses/CSC207/2011S/labs/code/bookcode/prj.el .
emacs src/weiss/util/AbstractCollection.java &
~/.emacs file for editing (probably in Emacs).
(setq jde-global-classpath (quote (".")))
somewhere/book/code, and you decided
where somewhere is. The source files live
in somewhere/book/code/src, and you've just
configured the compiled class files to live
in somewhere/book/code/class. Change above line in
your ~/.emacs to read instead:
(setq jde-global-classpath (quote ("." "/home/username/somewhere/book/code/class")))
being sure that you replace somewhere
with the appropriate directory you put things in. (Include
the leading slash to make the directory absolute, rather
than relative.)
tester.jar file lives if you haven't
already. To do this, you can amend the line you changed
above to something like:
(setq jde-global-classpath
(quote ("." "/home/username/somewhere/book/code/class"
"/home/username/somewhere-else/testing/tester.jar")))
being sure that you
replace somewhere-else with the
appropriate directory you put things in for
the testing lab.
Once again, be sure to include the leading slash.
cd ..
You should now be in somewhere/book
cp ~weinman/public_html/courses/CSC207/2011S/labs/code/bookcode/ListTest.java
Open the file with emacs and inspect it briefly to see what
it does.