Strange issue installing Java 8

Tags
aix

 
Thread Tools Search this Thread
# 8  
Old 07-13-2018
Either put your new java path before the inherited $PATH
Code:
PATH=/usr/sbin:/usr/localcw/sbin:/usr/lib/java8/jre/bin:/usr/java8_64/jre/bin:$PATH:/sbin:/opt/IBM/db2/V9.7/bin

Or, better, look where the $PATH comes from (/etc/profile ? /etc/environment ? /etc/default/login ? ... ?) and change it there.
As others said, it can make sense to just backout the old /usr/java14/jre/bin:/usr/java14/bin: and ensure that /usr/bin/java is a link to the desired version.
This User Gave Thanks to MadeInGermany For This Post:
hicksd8 (07-13-2018)
# 9  
Old 07-13-2018
Quote:
Originally Posted by MadeInGermany
Either put your new java path before the inherited $PATH
Code:
PATH=/usr/sbin:/usr/localcw/sbin:/usr/lib/java8/jre/bin:/usr/java8_64/jre/bin:$PATH:/sbin:/opt/IBM/db2/V9.7/bin

Or, better, look where the $PATH comes from (/etc/profile ? /etc/environment ? /etc/default/login ? ... ?) and change it there.
As others said, it can make sense to just backout the old /usr/java14/jre/bin:/usr/java14/bin: and ensure that /usr/bin/java is a link to the desired version.
This worked. I need to now understand why.
# 10  
Old 08-15-2018
Did you check your .profile, and/or .kshrc?

If you switch to bash - did you check, iirc, .bashrc

I tend to remove ~/.profile so that my PATH should only be coming from /etc/environment.

And, do consider uninstalling java1.4 (I recently uninstalled Java6*).

p.s. - if you create a new user - what do they see on login (would be caused by .profile in that case! which come, iirc, from /etc/security/.profile (it gets copied by mkuser).

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Strange Issue with sendmail mohtashims Shell Programming and Scripting 3 08-31-2016 11:13 PM
Strange Keyboard and Mouse Issue mrm5102 UNIX for Dummies Questions & Answers 12 02-10-2015 05:50 PM
Installing Java Problems Fob Upset UNIX for Dummies Questions & Answers 2 03-11-2011 06:47 PM
help with installing java EE on fedora 14 ShinTec Red Hat 1 02-15-2011 10:58 AM
strange route issue in powerha 5.4? rs6000er AIX 1 06-24-2009 02:23 PM
Strange Mysql issue muay_tb Web Programming 1 04-27-2009 08:05 AM
strange issue with ALOM in t51... upengan78 Solaris 13 02-23-2009 11:42 AM
strange aunthentication issue with email mcraul UNIX for Advanced & Expert Users 0 07-15-2008 12:32 PM
Strange issue AndrewSH UNIX for Dummies Questions & Answers 1 01-29-2008 05:33 PM
installing java 5.0 in HPUX B11.11 winky HP-UX 6 01-22-2008 11:21 PM
Java Exceptions while installing Oracle panchpan Solaris 5 11-21-2007 04:46 AM
Installing Java on Openserver 6 LetSco UNIX for Dummies Questions & Answers 6 07-04-2007 02:01 PM
root Password ... strange issue badrali Security 6 06-28-2007 10:41 AM
Strange Number comparison issue shihabvk UNIX for Advanced & Expert Users 9 04-10-2007 01:19 AM