Shay Shmeltzer's Oracle Development Tools Tips

Resolving Problems with the Embedded WebLogic in JDeveloper on Mac

Shay Shmeltzer
Director of Product Management - Oracle

Just a quick entry about something that I ran into in the past with JDeveloper, and that some of you who are using Mac might run into.

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.

To solve this - go into the system11. directory and locate the setDefaultDomain.sh file.

Edit this file and add the following lines:



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

Join the discussion

Comments ( 4 )
  • guest Thursday, January 1, 2015

    Hi shay,

    In the above information, you have mention the path

    system11. . I am using jdeveloper version in mac book, I am not finding this path. Please let me know the process.

    Thank you,


  • Shay Friday, January 2, 2015

    Sreeni, Check the help->about in JDeveloper for the property called ide.system.dir where the specific directory will be listed.

    I don't have on my mac but for 12c it is in a ".jdeveloper" directory under your user.

  • guest Thursday, March 26, 2015

    Hi ,

    Right click on My Computer, go to properties->Advanced->Environment Variables.

    In user Variables add a New variables with below details:

    Variable name: EXTRA_JAVA_PROPERTIES

    Variable Valute: -Xms256m -Xmx256m

    It also worked for me.

  • guest Thursday, August 27, 2015

    This env variable solution worked for me

    Variable name: EXTRA_JAVA_PROPERTIES

    Variable Valute: -Xms256m -Xmx256m

    Thank you

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.