Java Code Samples

Installing Weblogic on MacOS short notes (reminder for later …)

Posted in Java by Cristian on July 4, 2012

I had some problems that when I tried to launch the installer from Weblogic the installer UI did not detected the JAVA_HOME.

Despite I installed RcEnvironment http://www.rubicode.com/Software/RCEnvironment/ ,
which is after installation accessible from bottom system preferences on Other ==> Env. Variables., it still did not worked !? :(

I asked on fault server.com :

http://serverfault.com/questions/377510/path-variables-on-mac-os

http://serverfault.com/questions/67594/where-should-i-modify-the-path-var-on-os-x

However the above link solved some Path and Environment variable on my Mac but did not solved the real problem.

Update : The above is not valid for Mountain Lion :(
http://apple.stackexchange.com/questions/57385/where-are-system-environment-variables-set-in-mountain-lion

For setting JAVA_HOME and other environment variables :

http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x

The problem was solved following a link that concern instalation of JDeveloper.
Here is the link :

https://blogs.oracle.com/shay/entry/installing_jdeveloper_on_mac_os

So i run the command :
chmod +x jdev_on_lion.sh
then ./jdev_on_lion.sh

#!/bin/bash
mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6
mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/java
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/javac /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javac
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/javap /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javap
ln -s /System/Library/Java/Support/Deploy.bundle/Contents/Home/bin/javaws /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/javaws
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/jar
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/xjc /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/bin/xjc
mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/lib
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/classes/classes.jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/lib/tools.jar
mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre
mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/bin
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/bin/java
mkdir /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/lib
ln -s /system/library/java/javavirtualmachines/1.6.0.jdk/contents/classes/classes.jar /system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/jdk6/jre/lib/rt.jar

Update …

It seems now that I have Insufficient disk space no matter that in reality I have way more then 300GB free :)

Well luckily I am not the first one that had this problem so the solution came quite fast  :

http://dequeue.blogspot.be/2010/04/insufficient-disk-space-weblogic-10320.html

As it is written in this blog the problem is that i need to run the installation jar with the following argument :

java -Dos.name=unix -XX:MaxPermSize=512m -Xmx1024m -jar wls1034_generic.jar

About these ads
Tagged with: , , ,

One Response

Subscribe to comments with RSS.

  1. JavaPins said, on August 7, 2012 at 6:13 pm

    Installing Weblogic on MacOS short notes (reminder for later …) « Java Code Samples…

    Thank you for submitting this cool story – Trackback from JavaPins…


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: