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 script

$ ./

./ 19: [[: not found ./ 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.

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


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


That did the trick

%d bloggers like this: