Re: Java exits with status 2.

"[email protected] [H390-MVS]" <[email protected]>
Newsgroups gmane.comp.emulators.hercules390.mvs
Message-ID <[email protected]>
>OS level?  z/OS 2.1 

 Java level? 8.  Just downloaded from IBM.
 > If older, 31-bit or 64-bit? 
 64-bit.
 

 >Exactly the same result with <whatever> older Java and latest version 8?
 Yes. That is the strange part.  It doesn't matter what version I try to run I always get a 2.  Points to it being environmental rather than java-specific.
 

 >When you say "in omvs", what do you mean? You're running Java under TSO? Or are you just using omvs to mean UNIX?
 

 From ISPF option 6 I enter omvs.  
 .profile runs setting up env vars as expected.
 Command java -version produces no output and ends very quickly.
 Command java -version; echo $? produces a 2
 

 I get the same result (predictably) if I run BPXBATCH JCL.  No output, just an exit status of 2.
 

 >What are the memory settings for your userid and globally?
 

 ulimit -a
 core file         8192b         
 cpu time          7203          
 data size         unlimited     
 file size         unlimited     
 stack size        unlimited     
 file descriptors  64000         
 address space     41024k        
 memory above bar  10240m        
 

 D OMVS,L                                                 
 BPXO051I 11.45.24 DISPLAY OMVS 279                       
 OMVS     000F ACTIVE             OMVS=(00,BP,IZ,DB,PV,CI)
 SYSTEM WIDE LIMITS:         LIMMSG=NONE                  
                   CURRENT  HIGHWATER     SYSTEM          
                     USAGE      USAGE      LIMIT          
 MAXPROCSYS             26         31        200          
 MAXUIDS                 3          3        200          
 MAXPTYS                 1          2        256          
 MAXMMAPAREA             0        134      40960          
 MAXSHAREPAGES        5408       5872     524288          
 IPCMSGNIDS             29         29        500          
 IPCSEMNIDS              0          0        500          
 IPCSHMNIDS              0          0        500          
 IPCSHMSPAGES            0          0     262144          
 IPCMSGQBYTES          ---          0 2147483647          
 IPCMSGQMNUM           ---          0      10000          
 IPCSHMMPAGES          ---          0      25600          
 SHRLIBRGNSIZE           0          0   67108864          
 SHRLIBMAXPAGES          0          0       4096          
 MAXUSERMOUNTSYS         0          0          0          
 MAXUSERMOUNTUSER        0          0          0          


 

 >List the OMVS segment in RACF ("LU <userid> NORACF OMVS").
 

 OMVS INFORMATION 
 ---------------- 
 UID= 0000012345  
 HOME= /u/jazzusr 
 PROGRAM= /bin/sh 
 CPUTIMEMAX= NONE 
 ASSIZEMAX= NONE  
 FILEPROCMAX= NONE
 PROCUSERMAX= NONE
 THREADSMAX= NONE 
 MMAPAREAMAX= NONE
 

 Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.