About HPC Systems Software User Guides Education Partners

  / gears / hpc / software / comp / sunjava2


Bioinformatics

Compilers and Programming Tools

Computational Chemistry

File System

Finite Element Solvers

Graphics

Mathematics

Numerical Libraries

Optimization

Parallel Programming Libraries and Tools

Queuing and Scheduling Systems

Solid Modeling

Statistics

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:

    javac
    • The Sun Java compiler.
    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:

javac foo.java
java foo

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