JZOS runs "java", not "javac", so you would have to use BPXBATCH to run javac.

It turns out that "javac" (the java compiler command) is really just a front end to Java that runs the "com.sun.tools.javac.Main" class from $JAVA_HOME/lib/tools.jar. So, it is possible to use JZOS to run the compiler class. See this for more information:

http://www.dovetail.com/forum/viewtopic.php?p=1285

However, most of us that do mainframe java development *never* compile under z/OS. It is just much easier to compile and build jars with a workstation IDE and then upload the jars to z/OS to run. The redbook that you reference shows some example Ant scripts that can be used to automate creating and uploading jars.

Kirk Wolf
Dovetailed Technologies

Barkow, Eileen wrote:
There is also the BPXBATSL facility. The differences between the 3
(jzos, bpxbatch, bpxbatsl) are described in the redbook Java Stand-alone
Applications on z/OS Volume 1

I have been going thru all the examples for JZOS including the new ones
given in the new alphaWorks edition and have not yet seen an example of
running the java compiler with JZOS. I tried it and got alot of errors.

Can the java compiler be run with JZOS or only BPXBATCH?




----------------------------------------------------------------------
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