Strange issue installing Java 8


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
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:
# 9  
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  
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).
Login or Register to Reply

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

More UNIX and Linux Forum Topics You Might Find Helpful
Installing Java Problems
Fob Upset
Hello, When i attempt to install Java. I get this error code Can someone tell me what im doing wrong.... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers
help with installing java EE on fedora 14
ShinTec
Hi Forum Im a new to fedora and was wondering ,Can anybody direct me to a site that shows me how to install Java EE 6 SDK Update 1 (with JDK 6 Update 23) for fedora 14. NOT openjdk i need oracles java to develop a web app using tomcat 7.0 Any help would be much appreciated and thank you in advance... Red Hat
1
Red Hat
Strange issue
AndrewSH
I have created a server monitor program in Java that connects to servers via SSH and constantly refreshes the new server load every 3 mins. The problem is that even though it is a Java app running shell commands to get the load info, the commands still appear in 'history'. The question is.. is...... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
Installing Java on Openserver 6
LetSco
Forgive the sheer volume of verbiage: Sco Openserver 6 - how to install Java 1.42_14b: The documentation says: "Make a subdirectory and unwind the tar file into that subdirectory. mkdir JAVA142 cd JAVA142; tar -xf ../OSR6_Java2_142.VOLS.tar Run the Software Manager with the command: ...... UNIX for Dummies Questions & Answers
6
UNIX for Dummies Questions & Answers