Sponsored Content
Operating Systems AIX Strange issue installing Java 8 Post 303020077 by hicksd8 on Thursday 12th of July 2018 05:04:26 PM
Old 07-12-2018
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.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Installing Java on Openserver 6

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: ... (6 Replies)
Discussion started by: LetSco
6 Replies

2. Solaris

Java Exceptions while installing Oracle

Hello. I was trying to installe oracle 10g on solaris t0 x86 and got few exception? Could you please suggest, what might be going wrong? $ ls -l total 32 drwxr-xr-x 9 oracle dba 512 Nov 21 03:50 doc drwxr-xr-x 5 oracle dba 512 Nov 21 03:50 install drwxr-xr-x 2... (5 Replies)
Discussion started by: panchpan
5 Replies

3. HP-UX

installing java 5.0 in HPUX B11.11

please help me how to install java 5.0 in HPUX ...where can i download java 5.0 for HPUX? thanks winky (6 Replies)
Discussion started by: winky
6 Replies

4. UNIX for Dummies Questions & Answers

Strange issue

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... (1 Reply)
Discussion started by: AndrewSH
1 Replies

5. Web Development

Strange Mysql issue

Hi all, I recently changed the name of my hostname from 'abc123' to 'abc456' (as an example). I then added a user in my mysql database with the new host and removed references to the old users and hostname. The strange thing is though, a process using the database still uses the old... (1 Reply)
Discussion started by: muay_tb
1 Replies

6. Red Hat

help with installing java EE on fedora 14

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 (1 Reply)
Discussion started by: ShinTec
1 Replies

7. UNIX for Dummies Questions & Answers

Installing Java Problems

Hello, When i attempt to install Java. I get this error code Can someone tell me what im doing wrong. (2 Replies)
Discussion started by: Fob Upset
2 Replies

8. Shell Programming and Scripting

Strange Issue with sendmail

more works.sh #!/bin/ksh { print "From: reportgenerator@myserver.com" print "To: randomguy@myfirm.com" print "MIME-Version: 1.0" print "Content-Type: text/html" print "Subject: Disk Report" print "<body>" print "<table border=1>" ... (3 Replies)
Discussion started by: mohtashims
3 Replies
xcrun
     xcrun -- run or locate development tools

SYNOPSIS
xcrun [-sdk SDK] -find <tool_name> xcrun [-sdk SDK] [-log] <tool_name> [<tool_arguments>] <tool_name> [<tool_arguments>] DESCRIPTION
xcrun provides a means locate or invoke coexistence- and platform-aware developer tools from the command-line, without requiring users to modify makefiles or otherwise take laborious or inconvenient measures to adopt Xcode's multiple tool chains. xcode-select is used to specify which installation of Xcode is used, and may be overridden by the DEVELOPER_DIR environment variable. The SDK defaults to the current OS SDK, and can be specified by SDKROOT environment variable or the -sdk flag (which takes precedences over SDKROOT). USAGE
The first usage returns the full path to the found tool_name. The second usage executes tool_name with the given tool_arguments. The last syntax is when xcrun replaces any of the standard UNIX developer tools (typically in /usr/bin). In this case, xcrun will use its tool name to locate the corresponding tool within evaluated DEVELOPER_DIR and SDK. If the tool is not named xcrun , tool_arguments are not parsed by xcrun. OPTIONS
-verbose display information about how the redirected path is constructed. -no-cache don't consult the cache when looking up values. In effect, causes the cache to be refreshed. -sdk SDK specifies which SDK to use. Overrides any SDKROOT set in the environment. -log print the full command line that is invoked. -find print the full path to the tool. ENVIRONMENT
DEVELOPER_DIR - specifies the search path for locating the current developer tools (overrides xcode-select default). SDKROOT - specifies the SDK to use; overriden by the command line -sdk flag. xcrun_log - same as specifying -log xcrun_nocache - same as specifying -no-cache xcrun_verbose - same as specifying -verbose DIAGNOSTICS
When xcrun is invoked with the name xcrun , the flags -log and -verbose are useful debugging aids. The flag -no-cache can be used to bypass cache lookup. When xcrun as taken the place of another tool, the arguments are those of the tool replaced, and the various xcrun flags can't be used. In this case, use the specific environment variables instead. SEE ALSO
xcodebuild -find Xcode coexistence
All times are GMT -4. The time now is 01:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy