John,
I can say confidently that jar files produced on other platforms should
work fine under z/OS. We -always- produce our jars under Eclipse
(using Ant and the "jar" task) using both Windows and Linux. We
commonly download open source Java jars and upload them (in binary) for
use on z/OS. See the following for Java batch example Eclipse project
which includes complete examples:
http://dovetail.com/downloads (Java Batch XML sample project)
Notes:
- Java class files *according to the spec* contain UTF strings (for
class names, etc)
- Java .properties resources, often bundled in a jar file, are
*according to the spec* are ISO-8859-1.
The only possible problem is with *running* classes that have incorrect
assumptions that all -Dfile.encoding will be "ascii", which might
prevent the code from running properly if you run with say
-Dfile.encoding=IBM-1047. This has nothing to do with the jar though,
just the naive programmer. The best way around this is simply to run
the JVM with -Dfile.encoding=ISO8859-1 (or whatever ASCII-ish codepage
that you like), but this can have other I/O implications. This tends
to occur less and less these days, but still happens in odd cases. The
latest Webphere AS for z/OS even runs JVMs with a default Ascii file
encoding; I'm not sure about CICS or DB2.
Kirk Wolf
Dovetailed Technologies
PS. The "JZOS" batch Java functionality is now *included* in the latest
service refreshes for z/OS SDK 1.4 and SDK 5.0.
See: http://www-03.ibm.com/servers/eserver/zseries/software/java/
McKown, John wrote:
This question just occurred to me. If I am writing Java code that I want
to execute on z/OS, either batch or CICS, I want to use an desktop IDE
such as Netbeans or Eclipse. After all, why waste z/OS cycles doing Java
compiles? However, in order to easily use these IDEs, I need to be able
to access the appropriate "jar" files. I am running on a Windows XP Pro
system. There is no other option. I do not have an NFS client, so I
cannot NFS mount the z/OS UNIX subdirectories which contain the "jar"
files. Finally, I get to my question. Is it OK for me to download the
"jar" files to my workstation? I have absolutely NO idea where to look
to see what the license is that would address this issue.
This is more curiousity than anything else. The probability of this
company becoming interested in Java is very remote. But I can see some
uses for specialized applications. Too bad we're de-emphasizing the z
system environment.
--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology
----------------------------------------------------------------------
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