Does this help?
http://www.developer.com/java/data/how-to-create-a-jvm-instance-in-jni.html

> Date: Wed, 30 Mar 2016 17:21:20 -0600
> From: frank.swarbr...@outlook.com
> Subject: Re: Running an MVS executable using a .so library
> To: IBM-MAIN@LISTSERV.UA.EDU
> 
> 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: 0000004dc9e91b6d-dmarc-requ...@listserv.ua.edu
> > Subject: Re: Running an MVS executable using a .so library
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > 
> > 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 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

                                          
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to