How to find the Java Version being used by WebLogic
1. Open the setEnv.sh/cmd
(On PT8.51 and lower, located in <PS_HOME>/webserv/<DOMAIN_NAME>/bin
On PT8.52 and higher, located in <PS_CFG_HOME>/webserv/<DOMAIN_NAME>/bin)
2. Check JAVA_HOME variable
if JAVA_HOME variable is commented out, Go to 3.
set PS_HOME=C:/psft/ora/pt849
set BEA_HOME=C:/Bea
set WL_HOME=c:/bea/weblogic92
set DOMAIN_NAME=peoplesoft1
@REM Set Javahome via commEnv.cmd
call %WL_HOME%\common\bin\commEnv.cmd >nul 2>nul
@REM JAVA_HOME is set via commEnv.sh, to override set it here.
SET JAVA_HOME=%BEA_HOME%\jdk150_1
3. If JAVA_HOME variable is commented out, JAVA_HOME is set via commEnv.sh/cmd. Open the commEnv.sh/cmd (located in <WL_HOME>/common/bin)
and check JAVA_HOME
@rem Reset JAVA Home
set JAVA_HOME=c:\bea\jrockit_150_12
FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi
4. Go to directory path specified by JAVA_HOME.
Run "java -version" command.
-bash-3.2$ ./bin/java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
Comments
Post a Comment