Kirk, thank you very much for your explanation about javac and jzos. I have to try to run javac again under jzos - I was not sure if you could do it or not so I did not pursue trying to fix the errors.
I know that it is usually easier to run compiles on the work station but it seems to me that if JZOS is supposed to be some type of replacement for BPXBATCH from which javac can run, then it too should support and document the use of javac. Besides, sometimes it is necessary to have self contained job streams that do both compiles and executions - like the cobol compile and go procs. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Wolf Sent: Wednesday, June 20, 2007 1:35 PM To: [email protected] Subject: Re: Why do we need BPXBATCH, JZOS et. al.? 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 ---------------------------------------------------------------------- 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

