In today's laboratory session (11/05/98):
- Create a directory directly under your "userid" directory that
is named "Tools" such that when I type the command ...
I will see "Tools" as one of your directories.
Make sure you assign permissions such that this directory can
be read and executed by everybody.
- Write a simple "standalone" java class, such as my
class, adding a line at the top of the java program that states:
- Compile your newly created java program using the standard "javac"
- Once you have successfully compiled your java program, move its
".class" java byte code into your "Tools" directory and change
permissions on the file so that everyone can read and execute
- Write a java applet that uses your newly created java Class.
See, for example, my
"project.java" program that
utilizes the SphericalStar Class.
- Finally, compile this program in such a way that the java compiler
looks inside your "Tools" directory for your newly created ".class"
file. To do this, you must type in the following command in place of
javac -classpath .:/wwwdb/htdocs/phys2411/userid:/opt/sunos.local/java/lib/classes.zip yourProgram.java