X

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 11.1.2.4, 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.1.2.4.39.64.36.1/DefaultDomain/bin directory and locate the setDefaultDomain.sh file.

Edit this file and 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. 

Join the discussion

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

    Hi shay,

    In the above information, you have mention the path

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

    Thank you,

    Sreeni.


  • 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 11.1.1.6 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.Captcha
Oracle

Integrated Cloud Applications & Platform Services