Starting weblogic server instance in jDeveloper

我的梦境 提交于 2019-12-13 02:12:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!