Resolving Problems with the Embedded WebLogic in JDeveloper on Mac

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. 

Comments:

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.

Posted by guest on January 01, 2015 at 12:43 AM PST #

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.

Posted by Shay on January 02, 2015 at 10:38 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Mobile and Development Tools.
Follow me:
Search

Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today