The only UNIX on which Sun has released the Java Developer's Kit is Solaris (not surprisingly, as it's the UNIX they're hawking nowadays). Thus, to compile Java programs and to run non-applet Java programs, you must be on a Solaris machine.
Luckily for everyone concerned, the CS department has provided a whole lab full of Solaris machines to its undergraduates: the burrow. If you don't have a burrow account, try to get one here. If that's a problem, get in touch with me as soon as possible.
Once on a burrow machine, add the directory
/l/java/bin
to your path, and set your environment variable JAVA_HOME
to /l/java.
Once that is accomplished, you'll have access to the Java
compiler, javac and the Java interpreter/loader,
java:
javac filename
java classname
A tutorial of sorts is available for Java, as well as all sorts of documentation for both the language and the standard libraries. If you're running on the burrow, you will probably be able to (and probably want to) use the following local copies of the Java documentation tree:
Sun has some kind of legal relationship with the name ``Java'' and/or the product itself. If you care about such things, you can find all sorts of legalese off of Sun's Java page.
Back to the c311 page
ehilsdal@cs.indiana.edu