IBM Here is the readme from JAVA 5.0 on z/OS 1.10 ................... IBM 31-BIT SDK FOR Z/OS JAVA 2 V5 ----------------------------------------------------------------------- The catalog for IBM 31-BIT SDK FOR Z/OS JAVA 2 V5 is CATALOG.JVA500 located on VDJVAF Aliases in the catalog are JVA500 ----------------------------------------------------------------------- ________________________________________________________ | Feature | Private library | |_________________________________|______________________| | HFS mount /usr/lpp/java | JVA500.HFS | |_________________________________|______________________| MOUNT FILESYSTEM('JVA500.HFS') TYPE(HFS) MODE(READ) MOUNTPOINT('/usr/lpp/java')
Additional Install Information: 6.2 ACTIVATING IBM 31-BIT SDK FOR Z/OS, V5 6.2.1 HFS EXECUTION If you choose to have the HFS in which you have installed IBM 31-bit further tasks are required to accomplish this. IBM 31-bit SDK for z/OS, V5 is invoked as a command under the UNIX System Services shell. The path environment variable must be updated to point to the Java executables so that the command will be found. This can be done with the following shell command: export PATH=/usr/lpp/java/J5.0/bin:$PATH The export command references the default path into which IBM 31-bit SDK for z/OS, V5 was installed. If you changed the default path, change the export command accordingly. Alternatively, you can add the IBM 31-bit SDK for z/OS, V5 path to the system path variable contained in "/etc/profile". Once the path environment variable has been set, you can enter the following shell commands: java java -version IBM 31-bit SDK for z/OS, V5 is successfully installed if the "java" command responds with a summary of available options and the version option responds with the current version of the IBM 31-bit SDK for z/OS, V5 code. This version wasnt mounted and the directory entries on USS empty... Scott J Ford ________________________________ From: Scott Ford <scott_j_f...@yahoo.com> To: IBM-MAIN@bama.ua.edu Sent: Tuesday, October 6, 2009 1:51:07 PM Subject: Re: Deeper java problem I just ran into a java issue doing an install that required. The HFS file was not mounted....i had to mount it in USS and then tried it and it worked fine. Scott J Ford ________________________________ From: "Barkow, Eileen" <ebar...@doitt.nyc.gov> To: IBM-MAIN@bama.ua.edu Sent: Tuesday, October 6, 2009 9:07:35 AM Subject: Re: Deeper java problem The command is java HelloWorld - leave out the .class -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Steve Comstock Sent: Tuesday, October 06, 2009 8:10 AM To: IBM-MAIN@bama.ua.edu Subject: Deeper java problem Replying to my first post about a Java compile program, several people suggested it was a codepage issue. And that was my first thought, too, since I had been experimenting with various code pages in my emulator. However, with codepages matching in both the old and the new system, I cut and pasted from the old to the new and reran the compile. Same result. Michael Klaeschen suggested I check file.encoding and the symbol IBM_JAVA_OPTIONS, but I can't find those. I'm just issuing the javac command directly under omvs. More disturbing, I did a cd to the JAVA_HOME directory: cd /u/Java6_31/J6.0 And an 'ls' showed: -rw-r--r-- 1 TCPIP IPGROUP 425 Jun 3 22:39 HelloWorld.class drwxr-xr-x 2 TCPIP IPGROUP 8192 Mar 14 2008 IBM -rw-r--r-- 1 TCPIP IPGROUP 6 Jun 3 22:39 JDK_INSTALL_OK drwxr-xr-x 4 TCPIP IPGROUP 8192 Jun 3 22:39 bin -rw-r--r-- 1 TCPIP IPGROUP 833 Mar 22 2009 copyright drwxr-xr-x 13 TCPIP IPGROUP 8192 Jun 3 22:36 demo drwxr-xr-x 16 TCPIP IPGROUP 8192 Jun 3 22:39 docs drwxr-xr-x 3 TCPIP IPGROUP 8192 Jun 3 22:36 include drwxr-xr-x 13 TCPIP IPGROUP 8192 Jun 3 22:35 lib -rw-r--r-- 1 TCPIP IPGROUP 44534 Jun 3 22:39 license_en.txt drwxr-xr-x 3 TCPIP IPGROUP 8192 Jun 3 22:37 mvstools -rw-r--r-- 1 TCPIP IPGROUP 36370 Jun 3 22:40 notices.txt -rw-r--r-- 1 TCPIP IPGROUP 1694 May 29 09:41 readmefirst.zos.txt -rw-r--r-- 1 TCPIP IPGROUP 9084677 Jun 3 22:19 src.zip drwxr-xr-x 5 TCPIP IPGROUP 8192 Jun 3 22:40 standard But when I tried to run the sample, here is what I got: java HelloWorld.class Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld.class Caused by: java.lang.ClassNotFoundException: HelloWorld.class at java.net.URLClassLoader.findClass(URLClassLoader.java:419) at java.lang.ClassLoader.loadClass(ClassLoader.java:643) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345) at java.lang.ClassLoader.loadClass(ClassLoader.java:609) Could not find the main class: HelloWorld.class. Program will exit. just to be sure, I looked at PATH and CLASSPATH: printenv PATH /u/Java6_31/J6.0/bin:/usr/lpp/pli/bin:/usr/lpp/internet/bin:/usr/lpp/cobol/bin:/bin:. printenv CLASSPATH /u/scomsto/CGI:/u/scomsto/public_html/Java:/usr/lpp/internet/server_root/cgi-bin:/u/Java6_31/J6.0:/u/Java6_31/J6.0/src.zip:. In both cases, the '.' at the end should ensure a search in the current working directory. And I was running in the JAVA_HOME directory. And I can see the class right there before me. Any suggestions at this point? -- Kind regards, -Steve Comstock The Trainer's Friend, Inc. 303-393-8716 http://www.trainersfriend.com z/OS Application development made easier * Our classes include + How things work + Programming examples with realistic applications + Starter / skeleton code + Complete working programs + Useful utilities and subroutines + Tips and techniques ==> Ask about being added to our opt-in list: <== ==> * Early announcement of new courses <== ==> * Early announcement of new techincal papers <== ==> * Early announcement of new promotions <== ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu 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 lists...@bama.ua.edu 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 lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html