Fall 2004
Somo
> pico .loginif you are using a pico editor.
###########################################################################
#
# Source the jdk files
#
if (-r /usr/usc/jdk/1.4.2/setup.csh) then
source /usr/usc/jdk/1.4.2/setup.csh
endif
###########################################################################
3. Save the modified .login file.> source .loginThese above-mentioned steps are required to be done only once.
> javac Prog_Name.javaat the UNIX prompt. Of course, you have to be in the directory where this program is located. This will create the .class file for your program, and you can see a new file in the directory called Prog_Name.class.
> java Prog_Nameat the UNIX prompt. Again, you must be in the directory where your program was compiled.