Follow RUNJVA *VERSION with RTVMSG.

Additional Message Information

Message ID . . . . . . : JVAB52C Severity . . . . . . . : 00
Message type . . . . . : Completion
Date sent . . . . . . : 08/14/13 Time sent . . . . . . : 14:51:39

Message . . . . : Version JVM V5R1M0 JDK 1.4.2.
Cause . . . . . : The Java version is Java Virtual Machine (JVM) V5R1M0 and
Java Development Kit (JDK) 1.4.2.

Select Message Details to Display

Message ID . . . . . . . . . : JVAB52C
Message file . . . . . . . . : QJVAMSG
Library . . . . . . . . . : QJAVA
Message text . . . . . . . . : Version JVM &1 JDK &2.

Display Field Data

Message ID . . . . . . . . . : JVAB52C
Message file . . . . . . . . : QJVAMSG
Library . . . . . . . . . : QJAVA


Decimal Vary
Field Data Type Length Positions Length Dump
&1 *CCHAR *VARY 4 *NO
&2 *CCHAR *VARY 4 *NO

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of John Allen
Sent: Wednesday, August 14, 2013 2:49 PM
To: 'Java Programming on and around the IBM i'
Subject: How to retrieve current default Java version programatically

Is there a way to programmatically (CL or RPG) to retrieve
the current default version of JAVA that is set.

I need to conditionally execute CL code based on the current
default version of JAVA
(The Java Version that will run if I were to execute
RUNJAVA)
I know I can retrieve the version(s) of JAVA that are
installed, but I need the current default version.
The version that is displayed by running JAVA *VERSION

Example
If CurVerJava < "1.5"
Do A
Else
Do B
Enddo


Thanks

John



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.