How to Install WebLogic 12c ZIP on Linux

Posted by Bruno.Borges on Oracle Blogs See other posts from Oracle Blogs or by Bruno.Borges
Published on Mon, 3 Sep 2012 22:57:40 +0000 Indexed on 2012/09/04 3:44 UTC
Read the original article Hit count: 214

Filed under:

I knew that WebLogic had this small ZIP distribution, of only 184M, but what I didn't know was that it is so easy to install it on Linux machines, specially for development purposes, that I thought I had to blog about it.

You may want to check this blog, where I found the missing part on this how to, but I'm blogging this again because I wanted to put it in a simpler way, straight to the point. And if you are looking for a how to for Mac, check Arun Gupta's post.

 So, here's the step-by-step:

1 - Download the ZIP distribution (don't worry if your system is x86_64)
Don't forget to accept the OTN Free Developer License Agreement!

2 - Choose where to install your WebLogic server and your domain, and set as your MW_HOME environment variable
I will use /opt/middleware/weblogic for this how to

export MW_HOME=/opt/middleware/weblogic
Make sure this path exists in your system. 'mydomains' will be used to keep your WebLogic domain.
mkdir -p $MW_HOME/mydomain

3 - If you don't have your JAVA_HOME environment variable still configured, do it. Point it to where your JDK is installed.

export JAVA_HOME=/usr/lib/jvm/default-java

4 - Unzip the downloaded file into MW_HOME

unzip wls1211_dev.zip -d $MW_HOME

5 - Go to that directory and run configure.sh

cd $MW_HOME
./configure.sh

6 - Call the setEnvs.sh script

. $MW_HOME/wlserver/server/bin/setWLSEnv.sh

7 - Create your development domain. It will ask you for username and password. I like to use weblogic / welcome1

cd $MW_HOME/mydomain $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m \ -Dweblogic.management.allowPasswordEcho=true weblogic.Server

8 - Start WebLogic and access its web console

(sh startWebLogic.sh &); sleep 10; firefox http://localhost:7001/console

Usually, it takes only 10 seconds to start a domain, and 5 more to deploy the Administration Console (on my laptop). :-)

Enjoy!

© Oracle Blogs or respective owner

Related posts about /Java