Friday, October 3, 2014

Jdeveloper integrated weblogic server Unrecognized option: -jrockit issue

When you try and run your web application and the embedded WebLogic tries to start you might run into an error like:

Unrecognized option: -jrockit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit. 

This is most likely due to the fact that JDeveloper is trying to use the wrong JVM to run your WebLogic.

Solution

Edit the file: /users/vinay/.jdeveloper/system11.1.1.7.40.64.93/DefaultDomain/bin/setDomainEnv.sh

Add the following lines

JAVA_VENDOR="Sun"
export JAVA_VENDOR 

By doing this you'll instruct WebLogic to start with a regular JVM and not the JRockit variant which isn't on your mac.

More details here

No comments:

Post a Comment