Strange issue installing Java 8


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Strange issue installing Java 8

I just intalled java8_64.jre and .sdk respectively

Code:
installp -agXYd . Java8_64.jre Java8_64.sdk 2>&1 | tee installp.log

Worked like a champ. Now I see this--

Code:
jeff@server:/usr> ls -l | grep java
drwxr-xr-x    9 bin      bin             512 Sep 22 2010  java14
drwxr-xr-x    7 bin      bin             512 Oct 13 2015  java5
drwxr-xr-x    8 bin      bin             512 Oct 13 2015  java6
drwxr-xr-x    7 bin      bin             512 Sep 18 2014  java6_64
drwxr-xr-x    3 bin      bin             512 Feb 09 2015  java8_64

I added the path to the profile and resourced/logged out..

Code:
PATH=/usr/sbin:/usr/localcw/sbin:$PATH:/sbin:/opt/IBM/db2/V9.7/bin:/usr/lib/java8/jre/bin:/usr/java8_64/jre/bin

Code:
export PATH

Everything is how i have done it a million times. Heres the fun part...

Code:
jeff@server:/home1/jeff> java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20090307 (SR13) (JIT enabled: jitc))
jeff@server:/home1/jeff> whereis java
java: /usr/lib/java
jeff@server:/home1/jeff> whence java
/usr/java14/jre/bin/java
jeff@server:/home1/jeff>

Anyone have some tips that can help the profile, whereis, whence, which (its the same was whence) all equal java 8. I need to do this for root as well.. thanks in advance
# 4  
Quote:
Code:
PATH=/usr/sbin:/usr/localcw/sbin:$PATH:/sbin:/opt/IBM/db2/V9.7/bin:/usr/lib/java8/jre/bin:/usr/java8_64/jre/bin

Appends the new java path to the existing PATH.
What is the resulting PATH
Code:
echo $PATH

?
# 5  
I don't say you are doing it wrong... But somehow you do... Java should be in your path and that should be a link to the version you are using! Also maybe it is wrong on my site and you are doing it... You decide Smilie
For me java is in /usr/bin and that is a link to /usr/bin/java -> /some very long path/java
# 6  
I'm with MadeInGermany and DukeNuke2 who are both on track but let me explain this the way I see it.

Normally apps look for Java at either /usr/java or /usr/lib/java (depending on exactly which O/S it is).

However, an installation of jre will install to something like /usr/jrel.8.n or whatever.

The key is that the install directory (e.g. /usr/jrel.8.1) needs to be linked to the apps expected location (e.g. /usr/java) like:

Code:
# cd /usr
# ln -s jrel.8.1 /usr/java

then java apps and java version query commands can find the installed jre.

If you had previous versions of jre installed and that directory is still linked to /usr/java (or /usr/lib/java) then your apps will see the old version.

You will need to research what directory your apps expect java to be in and what directory your jre 8 is in, and link them.
# 7  
Code:
jeff@server:/home1/jeff> echo $PATH
/usr/sbin:/usr/localcw/sbin:/usr/sbin:/usr/localcw/sbin:/usr/local/bin:/usr/local/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/lpp/pd/bin:/usr/lpp/psf/bin:/usr/lpp/ars/bin:/usr/lpp/Acrobat3/bin:/app/ondemand/bin:/sybase/OCS-12_5/bin:/usr/vac/bin:/usr/vacpp/bin:/home1/jeff/bin:/bin:.:/sbin:/opt/IBM/db2/V9.7/bin:/usr/lib/java8/jre/bin:/usr/lpp/ars/bin:/sbin:/opt/IBM/db2/V9.7/bin:/usr/lib/java8/jre/bin:/usr/java8_64/jre/bin

jeff@server:/home1/t15krtk> java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20090307 (SR13) (JIT enabled: jitc))
jeff@server:/home1/jeff>

Code:
# cd /usr
# ln -s jrel.8.1 /usr/java

Ran with sudo np

---------- Post updated 07-13-18 at 06:33 AM ---------- Previous update was 07-12-18 at 06:12 PM ----------

Any more thoughts
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