Don't you need to do "something" in your program to start up a JVM in your address space?
With Enterprise COBOL this is to "automagically", so I'm not quite sure how to do it in another language. > Date: Wed, 30 Mar 2016 18:16:17 -0500 > From: [email protected] > Subject: Re: Running an MVS executable using a .so library > To: [email protected] > > Frank, > > That was magnificent and got me past my problem. > > Unfortunately I now get "Unable to Launch JVM -6 ". > > Which I believe is JNI_EINVAL which I believe means the JVM isn't running. > > I've been googling around and I haven't found how to tell if the JVM is > running on z/OS. When I installed Rational Developer I made sure that RSED > and some other job was running but clearly I missed the JVM itself? > > Can someone point me to the z/OS JVM manual? > > Janet > > >I think you need a LIBPATH environment variable to point to it > > >I got the following from the Enterprise COBOL manual: > > >http://www.ibm.com/support/knowledgecenter/SS6SG3_4.2.0/com.ibm.entcobol.doc_4.2/PGandLR/ref/rpooo10e.htm > >http://www.ibm.com/support/knowledgecenter/SS6SG3_4.2.0/com.ibm.entcobol.doc_4.2/PGandLR/tasks/tpooo08.htm > > >//RUN EXEC PGM=CALLJAVA,REGION=0M,COND=(4,LT), > >// PARM='ENVAR("_CEE_ENVFILE=/u/userid/javaenv") POSIX(ON)/' > >//STEPLIB DD DISP=SHR,DSN=JIG.BASE710.LOAD > >// DD DISP=SHR,DSN=CEE.SCEERUN > >// DD DISP=SHR,DSN=CEE.SCEERUN2 > > >/u/userid/javaenv would be a Unix file with something like the following: > >PATH=/bin:/u/Java6_31/J6.0/bin > >LIBPATH=/lib:/usr/lib:/u/Java6_31/J6.0/bin:/u/Java6_31/J6.0/bin/j9vm > >CLASSPATH=/u/userid/[something] > > >Note that I added SCEERUN2 to your STEPLIB. Not sure if it's necessary, but > >its in the example. > >Looks like you may also need to have DD's named JAVAIN, JAVAOUT and JAVAERR, > >as detailed in the second link above. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
