Wednesday 22 February 2017

Unrecognized option: -jrockit

starting weblogic with Java version:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Starting WLS with line:

Unrecognized option: -jrockit

If above error comes after starting Standalone weblogic then go through below solution:

Solution: Find "commEnv.cmd"   file in Weblogic Home

windows Path: C:\Oracle\Middleware\wlserver_10.3\common\bin


In "commEnv.cmd"  file change below value which is all ready mention as a -jrockit  


if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode set JAVA_VM=-jrockit

Change as below value
if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode set JAVA_VM=-client

:oracle
if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms128m -Xmx256m
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none
goto continue
:oracle_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms128m -Xmx256m
goto continue

----------------------------------------------------------------------------------------------------------

Unrecognized option: jrockit while trying to start Weblogic Admin console


JRockit VM might not be installed in the system. If JVM being used is HotSpot (which we can confirm by checking the java version), change the JAVA_VM property(under the label “oracle:“) in the file “commEnv.cmd” to (“-client” or “-server” depending on the JVM version being used) present in the folder %WL_HOME%/common/bin/.
This is what the file extract looks like after the change:
: oracle
if "%PRODUCTION_MODE%" == "true" goto oracle_prod_mode
set JAVA_VM=-client
Now, restart the server.

No comments:

Post a Comment