September 06, 2010

Installing OCCAS 5 on a Mac

Oracle has released a new version of Oracle Converged Communications Application Server, or OCCAS. This time it is version 5 and it contains mostly bugfixes from version 4. One thing they forgot (again) is the Mac users, and we still have to go through a tedious process of tricking the installer to work. Anyway here's the solution (freely taken from other sources on the Internet, most notably here).

First problem is still that the installer does not recognize the installed JDK from Apple. This is because the installer is looking for a rt.jar in the JDK, but Apple does not have one. We can trick the installer by simply creating an empty file called rt.jar at the appropriate location (/Library/Java/Home/jre/lib), but the JDK does not have the jre/lib so that must be created as well).

The second problem is that the installer will complain about too little free disk space. To avoid this, you must add to the parameter list of the java command.

Third problem is that the installer will crash in the final step where it is actually installing the software. This is due to memory usage and can be avoided by adding -Xmx512m and -XX:MaxPermSize=512m to the parameter list.

So in order to install OCCAS 5 on a Mac you must execute the following commands:

$ sudo mkdir -p /Library/Java/Home/jre/lib
$ sudo touch /Library/Java/Home/jre/lib/rt.jar
$ java -jar -Xmx512m -XX:MaxPermSize=512m occas500_ja_generic.jar

That should do the trick! You may delete the jre/lib/rt.jar now if you like.

Now all we need is a Mac version of the JRockit VM, Oracle, please...

No comments: