By way, not all java programs will work from the Unix shell (like those
using x11 graphics invoked from java Swing classes).
However, most java programs will run on WebSphere app server on the main
frame.
Java programs will also run on z/os Linux. But for Linux, i had to
install special software on Windows (Hummingbird Exceed) in order to get
x11 graphics to work, as well as set some variables in the Linux
profile.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Barkow, Eileen
Sent: Friday, April 13, 2007 1:14 PM
To: [EMAIL PROTECTED]
Subject: Re: IVP for JAVA

java /usr/lpp/jdk140/normal-J1.4/HelloWorld.class 

I am not sure if this will work on most systems.
You need to run from the directory relative to any package statements or
from the same directory if no package statements.
In this case, you would
cd /usr/lpp/jdk140/normal_j1
java -cp . HelloWorld

the -cp . will override the classpaths that are currently set or not
set. 
you will still need the JAVA_HOME and PATH statements to java set.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to