Set JAVA_HOME for current profile only (QSH method) - assure_quick_edd

Assure QuickEDD Tools

Product type
Software
Portfolio
Integrate
Product family
Assure
Product
Assure QuickEDD
ft:locale
en-US
ft:title
Assure QuickEDD Tools
Copyright
2025
First publish date
1997
ft:lastEdition
2026-06-16
ft:lastPublication
2026-06-16T12:37:06.301000
L1_Product_Gateway
Integrate
L2_Product_Segment
IBM Infrastructure
L3_Product_Brand
Precisely Assure
L4_Investment_Segment
IBM i Security
IBM i HA
L5_Product_Group
IBM i HA
IBM i Security - Base
L6_Product_Name
Assure QuickEDD HA
Legacy Security
Assure QuickEDD Promoter
Assure QuickEDD for PowerHA

To change the version of “Java to use” for only the current profile, following commands have to be used in QSH (adapt JAVA_HOME path to match your system):

test -e /home/$(logname)/.profile || touch -C 1200 /home/$(logname)/.profile

echo "export JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk70/64bit" >> /home/$(logname)/.profile

Previous commands check if "./profile" file for current user exists and if not creates this one and add the "JAVA_HOME" path into it.