Home > Ubuntu > errors during installation and running of WebLogic on Ubuntu

errors during installation and running of WebLogic on Ubuntu

1. When running ./configure.sh, you may get the following error:

./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.

Fix it:

Open the configure.sh file, change the first line from #!/bin/sh to #!/bin/bash.

Thanks to: http://softwareinabottle.wordpress.com/2011/12/20/fixing-mw_home-problem-at-weblogic-installation/

2. When starting the Weblogic server, you may get the following error:

The JRE was not found in directory /usr/lib/jvm/java-6-openjdk. (JAVA_HOME)
Please edit your environment and set the JAVA_HOME
variable to point to the root directory of your Java installation

Fix it: 

  1. Open the file [path_to_your_domain]/bin/setDomainEnv.sh.
  2. Edit line 87 to: JAVA_HOME=”/usr/lib/jvm/java-6-openjdk/jre”
  3. Save. Close it. And run it: ./setDomainEnv.sh
  4. Now, rerun the ./startWebLogic.sh
Advertisements
Categories: Ubuntu
  1. Furlaneves
    June 23, 2012 at 10:24 pm

    Thanks for the article. I was spinning around trying to find where the JAVA_HOME has been overwritten in my system and your blog saved me a lot of time! Thanks!

  2. fracoya
    May 27, 2013 at 4:26 am

    Thanks so much!!!

  1. No trackbacks yet.

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

%d bloggers like this: