问题
I am having an issue starting a weblogic server instance in jdeveloper 11.1.1.6 The startWebLogic script starts, but then I receive the following error:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -jrockit
I tried some of the other solutions that people have posted for this error, but have had no success. Some of the other suggestions involved JAVA_VM and the MEM_ARGS variables, but it didn't work for me. I also dug up the tokenValues.properties file, and deleted the @JAVA_VM = -jrockit statement, and that didn't work either.
I am using weblogic server 11gR1. Has anyone else had this problem in this environment?
回答1:
The -jrockit
option is only for use with the jrockit JVM, I assume you are running with a standard JDK?
You might need to set JAVA_VENDOR=Sun
at the top of your startWebLogic
script to avoid it. Otherwise it sounds like it thinks your JAVA_VENDOR=Oracle
, which means it will automatically tack on that -jrockit
when your setDomainEnv script sources the <weblogic home>/common/bin/commEnv
script.
The other option is to straight up modify <weblogic home>/common/bin/commEnv
so it does whatever you need.
来源:https://stackoverflow.com/questions/22047374/starting-weblogic-server-instance-in-jdeveloper