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
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
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
???
>> 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
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.
>> >> 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