Set Java Version on iSeries(AS400) – Also banking venture gibe default coffee version

Update: For iSeries (AS400) V7R1 Java version in addition to setup click here

First notice out what coffee version is the default when you lot sign on

There are ii ways to practise that …
1) Type java *version on ascendance line in addition to press ENTER. Here is the output

coffee version “1.4.2”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Classic VM (build 1.4, construct JDK-1.4, native threads, jitc_de)
Java plan completed

OR

2) Go into Qshell using QSH ascendance in addition to and then type coffee -version in addition to you lot volition exceed the same output

coffee -version
coffee version “1.4.2”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Classic VM (build 1.4, construct JDK-1.4, native threads, jitc_de)
$

Where is the default value for the Java Version setup on the iSeries(As400)?

For that you lot convey to check the file systemdefault.properties. The path for that file is
/QIBM/UserData/Java400/systemdefault.properties

This is a similar whatever other properties file inward coffee amongst cite in addition to value pairs.
The entry that you lot are looking for is

java.version=1.4

Or if you lot desire it to laid to coffee version 1.5 in addition to then you lot volition update that entry to

java.version=1.5

Tip: Here is a real quick in addition to tardily agency to practise in addition to populate the file amongst i command:
QSH CMD(‘echo java.version=1.4 > /QIBM/UserData/Java400/SystemDefault.properties’)
 
Remember this volition alter the default coffee version for whatever coffee application running on iSeries unless in that place is an override. Also you lot cannot only alter the value to anything in addition to it volition only live on you lot convey to brand certain that version of Java is already installed on the machine. If they are non you lot convey enquire your functioning personnel to charge it.

How to banking concern stand upward for what coffee versions are available on iSeries(AS400)?

Type ascendance GO LICPGM in addition to await for installed JDKs

5722JV1   *COMPATIBLE  Java Developer Kit 1.3      5722JV1   *COMPATIBLE  Java Developer Kit 1.4      5722JV1   *COMPATIBLE  Java Developer Kit 5.0   

OR

Go to IFS directory path /QIBM/ProdData/Java400
Type Command WRKLNK OBJ(‘/QIBM/ProdData/Java400’) , banking concern stand upward for subdirectories

Opt   Object link            Type       ext                    DIR       fonts                  DIR       jdk13                  DIR        jdk14                  DIR        jdk15                  DIR 

How to laid default coffee version for a specific user on iSeries(AS400)?

Update the Home Directory for the user profile to your ain unique IFS folder
Home directory . . . . . . . . . HOMEDIR        *SAME

Then re-create the systemdefault.properties file into that folder in addition to laid the coffee version.

How to laid coffee version during JAVA in addition to RUNJVA call?

Just laid the parameter Properties: PROP, event PROP((java.version '1.4')) 

How to laid the coffee version using environs variable?

Java environs variable is JAVA_HOME ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QIBM/ProdData/Java400/jdk15') 


Sumber http://www.mysamplecode.com/