Install Weblogic on Mac OS X

By Abhijat  Upadhyay – Sr. Software Engineer 

Describes installation of Weblogic Server 11gR1 ( on Mac OS X. This installation procedure has been tested on Snow LeopardLion and Mountain Lion.

Download generic server jar from:
Default file name is wls1033_generic.jarYou will need Oracle ID to download.

Hardware and software setup used:

  1. MacBook Pro 15″ 2.66 GHz Intel Core i7 8GB RAM (mid 2010).
  2. Mac OS X 10.6/10/7/10.8 using 64-Bit kernel. To boot into 64 bit mode, checkout:
  3. JDK 1.6.0_33
  4. NOTE: for OS X Lion (10.7) and above, download Java manually. We have couple of options:

Make Oracle recognize Apple’s Java:

To make Oracle Weblogic installer recognize Apple’s implementation of Java, create fake jars and folders.

  1. Open a Terminal window.
  2. Check your JAVA_HOME by executing – /usr/libexec/java_home
    • For OS X 10.6 (Snow Leopard) and below –
    • For OS X 10.7 (Lion) and above: Depending on whether you installed only JRE or only JDK, java_home will give you different results. Here are possible outcomes based on your choice:
      • JDK with source code:
      • JRE only:
  3. cd $JAVA_HOME (depending on above steps)
  4. sudo mkdir jre
  5. sudo mkdir jre/lib
  6. cd jre/lib
  7. sudo ln -s ../../../Classes/classes.jar rt.jar
  8. sudo ln -s ../../../Classes/classes.jar core.jar
  9. cd ../../lib
  10. sudo ln -s ../../Classes/classes.jar tools.jar

Finally !! Install Weblogic:

  1. Make sure that you are still in the Terminal window. If not then launch one.
  2. Goto the folder where you downloaded wls1033_generic.jar into.
  3. Execute –
    java -d64 -Dspace.detection=false -Xmx1024m -jar wls1033_generic.jar
  4. -Dspace.detection=false takes care of avoiding the Insufficient Disk Space error!!
  5. This will bring up interactive installation dialogue box to setup the server.
  6. Screenshots have been provided below for convenience.

About collectivegenius
Everyone has a voice and great ideas come from anyone. At Cobalt, we call it the collective genius. When technical depth and passion meets market opportunity, the collective genius is bringing it’s best to the table and our customers win.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: