Fixing MW_HOME problem with the Domain Wizard in WebLogic 11g


After having installed a WebLogic server on my Ubuntu machine, I wanted to use the wizard to create a domain. I then ran into the following problem when I ran the configure.sh script

$ ./configure.sh

./configure.sh: 19: [[: not found ./configure.sh: 19: -d: not found ERROR: You must set MW_HOME and it must point to a directory. where an installation of WebLogic exists. Ensure you point this variable to the extract location of the zip distribution. config.sh

The problem is simple. The first line of the script as it comes out of the box is

#!/bin/sh

In order to run it properly, I changed that first line to refer to bash as follows

#!/bin/bash

That did the trick

%d bloggers like this: