Unrecognized option:-jrockit error:could not create the Java Virtual machine.

Source: Internet
Author: User


Unrecognized option:-jrockit
Error:could not create the Java Virtual machine.
ERROR:A Fatal exception has occurred. Program would exit


is a bug thrown by WebLogic 10.3.5 when it starts.


WebLogic installation of the selection is the development mode, the choice of JDK is jdk1.7,domain domain created when the choice of JDK is also jdk1.7


Errors that occur when the%domain_home%\bin\startweblogic.cmd is started

The specific error message is

Starting WebLogic with Java version:unrecognized option:-jrockiterror:could not create the Java Virtual machine.error:a Fatal exception has occurred. Program would exit. Starting WLS with Line:d:\dev_env\java7\jdk17~1.0_6\bin\java-jrockit-xms512m-xmx512m-dweblogic.name=adminserver- Djava.security.policy=d:\oracle\middle~1\wlserv~1.3\server\lib\weblogic.policy-xverify:none-da-dplatform.home= D:\oracle\middle~1\wlserv~1.3-dwls.home=d:\oracle\middle~1\wlserv~1.3\server-dweblogic.home=d:\oracle\middle~1 \wlserv~1.3\server-dweblogic.management.discover=true-dwlw.iterativedev=-dwlw.testconsole=- Dwlw.logerrorstoconsole=-dweblogic.ext.dirs=d:\oracle\middle~1\patch_wls1035\profiles\default\sysext_manifest_ Classpath;d:\oracle\middle~1\patch_ocp360\profiles\default\sysext_manifest_classpath WebLogic.  serverunrecognized option:-jrockiterror:could not create the Java Virtual machine.error:a fatal exception have occurred. Program would exit. D:\Oracle\Middleware\user_projects\domAins\dev_domain\bin> 

in error
Unrecognized option:-jrockiterror:could not create the Java Virtual machine.error:a fatal exception have occurred. Program would exi

Follow the error to find the reason, the first error of the above line of output information is

Starting WebLogic with Java version:

Find the script contents of the row

Echo starting WebLogic with Java Version:%java_home%\bin\java%java_vm%-versionif "%wls_redirect_log%" = = "" (Echo Starting WLS with Line:echo%java_home%\bin\java%java_vm%%mem_args%-dweblogic.name=%server_name%- Djava.security.policy=%wl_home%\server\lib\weblogic.policy%java_options%%proxy_settings%%SERVER_CLASS%%JAVA_ Home%\bin\java%java_vm%%mem_args%-dweblogic.name=%server_name%-djava.security.policy=%wl_home%\server\lib\ Weblogic.policy%java_options%%proxy_settings%%server_class%) Else (echo redirecting output from WLS windows to%wls_redi Rect_log%%java_home%\bin\java%java_vm%%mem_args%-dweblogic.name=%server_name%-Djava.security.policy=%WL_HOME%\ Server\lib\weblogic.policy%java_options%%proxy_settings%%server_class%  > "%wls_redirect_log%" 2>&1 )


Under the analysis, the question of the %java_vm% parameter is suspected.


Try changing the script to

Echo starting WebLogic with Java Version:echo%java_vm%%java_home%\bin\java%java_vm%-versionif "%wls_redirect_log%" = = "" (Echo starting WLS with Line:echo%java_home%\bin\java%java_vm%%mem_args%-dweblogic.name=%server_name%- Djava.security.policy=%wl_home%\server\lib\weblogic.policy%java_options%%proxy_settings%%SERVER_CLASS%%JAVA_ Home%\bin\java%java_vm%%mem_args%-dweblogic.name=%server_name%-djava.security.policy=%wl_home%\server\lib\ Weblogic.policy%java_options%%proxy_settings%%server_class%) Else (echo redirecting output from WLS windows to%wls_redi Rect_log%%java_home%\bin\java%java_vm%%mem_args%-dweblogic.name=%server_name%-Djava.security.policy=%WL_HOME%\ Server\lib\weblogic.policy%java_options%%proxy_settings%%server_class%  > "%wls_redirect_log%" 2>&1 )

re-start, test the contents of the%java_vm% parameters
Starting WebLogic with Java version:-jrockitunrecognized option:-jrockiterror:could don't create the Java Virtual machine. ERROR:A Fatal exception has occurred. Program would exit

proves that the content of%java_vm% is-jrockit, which was a JDK developed before BEA, and now uses Sun's JDK, which is not recognized.

The simplest way to modify it is to remove the%java_vm% from the startup script.


Change the script to

<pre name= "code" class= "HTML" >echo starting WebLogic with Java version:%java_home%\bin\java-versionif "%wls_ redirect_log% "= =" "(Echo starting WLS with Line:echo%java_home%\bin\java%mem_args%-dweblogic.name=%server_name%- Djava.security.policy=%wl_home%\server\lib\weblogic.policy%java_options%%proxy_settings%%SERVER_CLASS%%JAVA_ Home%\bin\java%mem_args%-dweblogic.name=%server_name%-djava.security.policy=%wl_home%\server\lib\ Weblogic.policy%java_options%%proxy_settings%%server_class%) Else (echo redirecting output from WLS windows to%wls_redi Rect_log%%java_home%\bin\java%mem_args%-dweblogic.name=%server_name%-djava.security.policy=%wl_home%\server\ Lib\weblogic.policy%java_options%%proxy_settings%%server_class%  > "%wls_redirect_log%" 2>&1)

it can start normally.



Unrecognized option:-jrockit error:could not create the Java Virtual machine.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.