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!

Comments:

Hi Burno, excellent post.

I want to share an Oracle By Example tutorial link that shows step-by-step guidance on how to install WebLogic Server 12c Zip Distribution File:

http://apex.oracle.com/pls/apex/f?p=44785%3A24%3A0%3A%3A%3A24%3AP24_CONTENT_ID%2CP24_PREV_PAGE%3A6396%2C1

Regards,

Edgar

Posted by guest on September 05, 2012 at 07:31 AM PDT #

Hi!

For some reason it says :

/usr/lib/jvm/jdk1.7.0_40/bin/unpack200: No such file or directory

when running the ./configure.sh

Do you have any idea why?

I have Java jdk1.7.0_40 installed.

Posted by guest on October 09, 2013 at 03:24 AM PDT #

once the server is started and running how do we shut it down?

Posted by guest on February 04, 2014 at 04:08 AM PST #

Thanks Bruno for the simple and clear instructions.

Posted by Saurabh Mishra on April 08, 2014 at 01:27 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
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