Sun Java 2
Overview
The Sun Java 2 Software Development Kit is a development environment for
building applications, applets, and components that can be deployed on
the Java Platform.
Setup
To use Sun's Java compiler and interpreter, it is necessary to set the
environment by running a special command sequence once per login
session. You may optionally place these command in your .cshrc (C Shell
users) or .bash_profile (Bourne Shell users) to avoid having to manually
run these commands on login.
|
For csh and tcsh:
source /usr/local/setup/sunjava2.setup.csh
|
|
For sh and bash:
. /usr/local/setup/sunjava2.setup.sh
|
Usage
Sun's Java2 Software Development Kit contains the following commands:
java
- The Sun Java runtime environment.
appletviewer
- The Sun Java applet viewer.
Examples
To compile a java source file called foo.java into a java bytecode file
foo.class and run it, the following commands should be used:
Documentation
Documentation is available in HTML form in /usr/global/j2sdk/docs. It
can be viewed with the command:
|
lynx /usr/global/j2sdk/docs/index.html
|
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|