× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Now that you mention it, I believe that's the behavior with any of the J9 JVM's. I just tried RUNJVA *VERSION on our V5R4 box. It opened Java Shell Display and showed:
Java Shell Display

java version "1.6.0"
Java(TM) SE Runtime Environment (build pap3260sr10fp1-20120321_01(SR10 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 OS/400 ppc-32 jvmap3260sr10-20111208 (JIT enabled, AOT enabled)
J9VM - 20111207_096808
JIT - r9_20111107_21307ifx1
GC - 20110519_AA)
JCL - 20120320_01
Java program completed

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

Thanks.
This works on V5R3 (Have not tested on V5R4)
On 6.1 JAVA *VERSION starts qshell and displays the version
on the QSHELL screen (nothing in the joblog)

Did this change in 6.1 (or V5R4) or is there something with
the RUNJVA *VERSION I can specify to make it work
like V5R3 (Use message instead of QSHELL to display the
version)


Thanks

John


-----Original Message-----
From: Dan Kimmel [mailto:dkimmel@xxxxxxxxxxxxxxx]
Sent: Wednesday, August 14, 2013 4:08 PM
To: Java Programming on and around the IBM i
Subject: RE: How to retrieve current default Java version
programatically

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


--
This is the Java Programming on and around the IBM i
(JAVA400-L) mailing list To post a message email:
JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change
list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting,
please take a moment to review the archives at
http://archive.midrange.com/java400-l.



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2904 / Virus Database: 3209/6563 - Release
Date: 08/09/13

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2904 / Virus Database: 3211/6576 - Release
Date: 08/14/13

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




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