Monday Sep 03, 2012

How to Install WebLogic 12c ZIP on Linux

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!

About


Bruno has been having fun working with Java since 2000 and now helps Oracle on sharing the technology accross all Latin America. Also plays videogames, does trekking and loves beer.

Follow me on Twitter! @brunoborges

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today