For all of my Java programs on z/OS, which is limited, but have done a few different items, I have only used the Java loaded with z/OS install. Also, there should a src.zip in /usr/lpp/java/J8.0_64 folder, with a lot of sample Java code. One thing to note, make sure you have these in your configuration
LIBPATH $java_home/bin, $java_home/lib/s390x, $java_home/lib/s390x/j9vm CLASSPATH load $java_home/lib, $java_home/lib/ext And here are some helpful Java option setting as well. # Set JZOS specific options # Use this variable to specify encoding for DD STDOUT and STDERR #export JZOS_OUTPUT_ENCODING=Cp1047 # Use this variable to prevent JZOS from handling MVS operator commands #export JZOS_ENABLE_MVS_COMMANDS=false # Use this variable to supply additional arguments to main #export JZOS_MAIN_ARGS="" # Configure JVM options IJO="-Xms16m -Xmx128m" # Uncomment the following to aid in debugging "Class Not Found" problems #IJO="$IJO -verbose:class" # Uncomment the following if you want to run with Ascii file encoding.. #IJO="$IJO -Dfile.encoding=ISO8859-1" export IBM_JAVA_OPTIONS="$IJO " -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Barkow, Eileen Sent: Friday, January 11, 2019 11:58 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Do I need to copy a mainframe flat file to OMVS, before I access the data from a JAVA program? - JZOS question Re JZOS: The last time I looked at JZOS , about 2 years ago, there were no supplied classes for 64 bit java, only 31 bit. JZOS itself had a 64 bit option to run the batch launcher, but no classes that I could find, like those for the MVS datasets or my favorite one for ZipDataSets. And the documentation consisted of a README file from IBM that pointed to a bogus, non-existent web site. Before I try JZOS again, is it supplying classes compiled with 64 bit java or not? -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jantje. Sent: Friday, January 11, 2019 7:05 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Do I need to copy a mainframe flat file to OMVS, before I access the data from a JAVA program? On Thu, 10 Jan 2019 18:11:47 -0500, Cameron Conacher <conac...@gmail.com> wrote: >Thanks everyone. >Looks like I have some reading to do :-) Yes. And while you are at it, do have a look at the excellent jZos stuff originally from Dovetailed, but now included in the JVM. It has (amongst many other goodies) a ZFile class. Cheers, Jantje. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ________________________________ This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN