On Thu, 21 Jan 2016 03:14:44 +0000, Rob Schramm wrote: >About the /etc/profile... >Best to set JAVA_HOME to a symlink. Less work for an upgrade. The users >can always override such things.. Having a standard symlink(s) that can be >used gives a nice amount of control and consistency. > Can you cite an authority for "JAVA_HOME"? I find it mentioned in various IBM pubs, mainly relating to Websphere. It's nowhere mentioned in /etc/* nor in /samples/*.
Can SMP/E, an old fashioned batch utility expect to find JAVA_HOME set? Can the batch JCL programmer override it without painful contortions? Right now, I'm working on the BPXWUNIX function I cited earlier in JCL tailoring to select the newest /usr/lpp/java/J*/bin. Early in Release 3, SMP/E used to execute the programmer's ~/.profile via a login shell. That was a disaster; too many surprises. They got better. On Linux I see: 500 $ whence java /usr/bin/java 501 $ ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 Nov 10 2014 /usr/bin/java -> /etc/alternatives/java 502 $ ls -l /etc/alternatives/java lrwxrwxrwx 1 root root 45 Nov 23 20:03 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 503 $ ls -l /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java -rwxr-xr-x 1 root root 5596 Nov 20 16:27 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java ... I see considerable rationale for the double symlink: "java" is in a generic executables directory, pointing to a product-specific directory, pointing to a version. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
