Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JAVA_HOME seemingly ignored on V5R4 machine

427 views
Skip to first unread message

Mr. K.V.B.L.

unread,
Jun 23, 2009, 4:45:19 PM6/23/09
to
We have a V5R4 and a V6R1 machine. On V6R1, if I set JAVA_HOME '/
QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit' and enter QSH, the 'java'
and 'javac' commands will both display information that they are
running on JRE 1.5. The V5R4 machine persists in running 1.4.2 even
though the JAVA_HOME is set identically. My PATH variable is the same
on both systems as well. The 'java' command equates to /bin/java on
both systems.


Running JAVA *VERSION gives:

V6R1
java version
"1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
pap32devifx-20080811b (SR8a))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 OS400 ppc-32
j9vmap3223sr8a-20080811 (JIT enabled)
J9VM -
20080809_21892_bHdSMr
JIT -
20080620_1845_r8
GC -
200806_19)
JCL -
20080811a
Java program
completed

V5R4
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Classic VM (build 1.4, build JDK-1.4, native threads, jitc_de)
Java program completed

Funny, in V5R4, running "java -version" gives "Unable to create Java
Virtual Machine.", but it will execute a class file anyway. I can
force 1.5 by using -Djava.version=1.5

Ad

unread,
Jun 23, 2009, 5:17:09 PM6/23/09
to
"Mr. K.V.B.L." <kenvery...@gmail.com> wrote in news:3020205a-553e-4316-
8c76-564...@o36g2000vbi.googlegroups.com:

om my V5R4 sytem:
CHGENVVAR ENVVAR(JAVA_HOME)
VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit')
RUNJVA CLASS(*version)
gives:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build jclap32dev-
20081129)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 OS400 ppc-32 j9vmap3223sr9-
20081129 (JIT enabled)
J9VM - 20081126_26240_bHdSMr
JIT - 20081112_1511ifx1_r8
GC - 200811_07)
JCL - 20081129
Java program completed

looks like or 5722JV1 option 8 not correctly installed or 5722SS1 option 33
(Pase) not correctly installed or 5722SS1 option 33 not installed..


--
Ad,

pas de probl�me, que des solutions

Kelly Beard

unread,
Jun 24, 2009, 11:13:38 AM6/24/09
to
On Jun 23, 4:17 pm, Ad <noem...@spam.com> wrote:
> "Mr. K.V.B.L." <kenverybigl...@gmail.com> wrote in news:3020205a-553e-4316-
> 8c76-5643d6d6d...@o36g2000vbi.googlegroups.com:
> pas de problème, que des solutions

As it is for you, so it is for me.

JAVA_HOME is /QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit

but RUNJVA CLASS(*VERSION) gives

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Classic VM (build 1.4, build JDK-1.4, native threads, jitc_de)
Java program completed

GO LICPGM, option 10 (our V5R4 machine)
5722JC1 *COMPATIBLE IBM Toolbox for Java
5722JV1 *COMPATIBLE IBM Developer Kit for Java
5722JV1 *COMPATIBLE Java Developer Kit 1.3
5722JV1 *COMPATIBLE Java Developer Kit 1.4
5722JV1 *COMPATIBLE Java Developer Kit 5.0
5722JV1 *COMPATIBLE J2SE 5.0 32 bit
5722SS1 *COMPATIBLE Portable App Solutions Environment

???

Ad

unread,
Jun 24, 2009, 1:20:12 PM6/24/09
to
Kelly Beard <kenvery...@gmail.com> wrote in news:1264feea-083e-4999-
a24d-b20...@v2g2000vbb.googlegroups.com:

>> pas de probl�me, que des solutions


>
> As it is for you, so it is for me.
>
> JAVA_HOME is /QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit
>
> but RUNJVA CLASS(*VERSION) gives
>
> java version "1.4.2"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
> Classic VM (build 1.4, build JDK-1.4, native threads, jitc_de)
> Java program completed
>
> GO LICPGM, option 10 (our V5R4 machine)
> 5722JC1 *COMPATIBLE IBM Toolbox for Java
> 5722JV1 *COMPATIBLE IBM Developer Kit for Java
> 5722JV1 *COMPATIBLE Java Developer Kit 1.3
> 5722JV1 *COMPATIBLE Java Developer Kit 1.4
> 5722JV1 *COMPATIBLE Java Developer Kit 5.0
> 5722JV1 *COMPATIBLE J2SE 5.0 32 bit
> 5722SS1 *COMPATIBLE Portable App Solutions Environment
>
> ???

when do you get the error "Unable to create Java Virtual Machine." ?

when you use -Djava.version=1.5 do you get the classic JVM or the 32-bits?

do yo have a SystemDefault.properties file on your V5R4 system
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?
topic=/rzaha/sdpropf.htm

Kelly Beard

unread,
Jun 25, 2009, 10:08:55 AM6/25/09
to
On Jun 24, 12:20 pm, Ad <noem...@spam.com> wrote:
> Kelly Beard <kenverybigl...@gmail.com> wrote in news:1264feea-083e-4999-
> a24d-b20822a93...@v2g2000vbb.googlegroups.com:
> >> pas de problème, que des solutions

>
> > As it is for you, so it is for me.
>
> > JAVA_HOME is /QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit
>
> > but RUNJVA CLASS(*VERSION) gives
>
> > java version "1.4.2"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
> > Classic VM (build 1.4, build JDK-1.4, native threads, jitc_de)
> > Java program completed
>
> > GO LICPGM, option 10 (our V5R4 machine)
> > 5722JC1   *COMPATIBLE  IBM Toolbox for Java
> > 5722JV1   *COMPATIBLE  IBM Developer Kit for Java
> > 5722JV1   *COMPATIBLE  Java Developer Kit 1.3
> > 5722JV1   *COMPATIBLE  Java Developer Kit 1.4
> > 5722JV1   *COMPATIBLE  Java Developer Kit 5.0
> > 5722JV1   *COMPATIBLE  J2SE 5.0 32 bit
> > 5722SS1   *COMPATIBLE  Portable App Solutions Environment
>
> > ???
>
> when do you get the error "Unable to create Java Virtual Machine." ?
>
> when you use -Djava.version=1.5 do you get the classic JVM or the 32-bits?
>
> do yo have a SystemDefault.properties file on your V5R4 systemhttp://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?
> topic=/rzaha/sdpropf.htm
>
> --
> Ad,
>
> pas de problème, que des solutions

I get the error in the QSH environment when when I issue a commandline
like:

java -version
- or -
java -showversion

When I use the -Djava.version=1.5 it will run 1.5.

I have tried setting the SystemDefault.properties file and adding
"java.version=1.5" but that didn't do anything for me. Still wants to
run 1.4.

I can force it by using the -D option, but it should default to 1.5
without resorting to that measure because my JAVA_HOME is set
correctly.
without specifying a class to run. Maybe that is the correct behavior
for 1.4.

Ad

unread,
Jun 25, 2009, 2:11:09 PM6/25/09
to
Kelly Beard <kenvery...@gmail.com> wrote in
news:5edc5266-a5ab-4854...@s6g2000vbp.googlegroups.com:

>> >> pas de probl�me, que des solutions

>> pas de probl�me, que des solutions


>
> I get the error in the QSH environment when when I issue a commandline
> like:
>
> java -version
> - or -
> java -showversion
>
> When I use the -Djava.version=1.5 it will run 1.5.
>
> I have tried setting the SystemDefault.properties file and adding
> "java.version=1.5" but that didn't do anything for me. Still wants to
> run 1.4.
>
> I can force it by using the -D option, but it should default to 1.5
> without resorting to that measure because my JAVA_HOME is set
> correctly.
> without specifying a class to run. Maybe that is the correct behavior
> for 1.4.

when you use -Djava.version=1.5 do you get

A: the classic JVM
java version "1.5.0"
@@java_runtime_name@@ (build 1.5.0_17-b04)
Classic VM (build 1.5, build JDK-1.5, native threads, jitc_de)
B: the 32-bits?


java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build jclap32dev-
20081129)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 OS400 ppc-32 j9vmap3223sr9-
20081129 (JIT enabled)
J9VM - 20081126_26240_bHdSMr
JIT - 20081112_1511ifx1_r8
GC - 200811_07)
JCL - 20081129

if you do not get B:
reinstall 5722JV1 option 8 and 5722SS1 option 33, and install ptf's again

0 new messages