Websphere Application Server 8.5 Java 7 questions
-
12-12-2019 - |
Question
I have the following questions on WAS 8.5 installation:
- Can Java 7 be installed outside {or}c:\IBM\Websphere\Appserver
- Can the Java 7 name be other than Java1.7_64?
Also how to get the info. using any bat/sh file from IBM
Thanks in advance
Solution
No to both: there is no way to change the Java install directory.
To determine the configured JDK, source setupCmdLine and use the JAVA_HOME variable. For example, on UNIX:
. /path/to/profile/setupCmdLine.sh
echo $JAVA_HOME
...and on Windows:
C:\path\to\profile\bin\setupCmdLine.bat
echo %JAVA_HOME%
If you need to automate discovery, you might write a temporary batch file with the following contents, execute it (e.g., using ProcessBuilder), and then parse the resulting output:
@echo off
call "C:\path\to\profile\bin\setupCmdLine.bat"
echo JAVA_HOME=%JAVA_HOME%
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow