This article describes how to integrate WebLogic Server in the latest supported version of Eclipse IDE for Java EE Developers.
You need to start by getting all of the pieces - Java SE Development Kit, WebLogic Server, and Eclipse IDE.
Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html to download Java SE Development kit (neither WLS nor Eclipse come with it). Accept the license agreement, download the binary file, and install it on your computer. Set your JAVA_HOME to the installation directory and add $JAVA_HOME/bin to your PATH.
Next get and install a copy of WebLogic Server (WLS). The latest version of WLS that is currently supported in Eclipse is WLS 126.96.36.199.0. The standard WLS download page at http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html has 188.8.131.52.0 at the top. If you are running on Windows, your command window will need to be running as the Administrator. (Note that the graphics below show 184.108.40.206.0 because they haven't been updated.)
java -jar fmw_220.127.116.11.0_wls.jar
You can take all of the default values. You will need to specify an installation directory. You might want to install the examples. On the last page, make sure the “Automatically Launch the Quickstart Configuration Wizard” is clicked to create the domain.
In the Configuration Wizard, take the defaults, you may want to change the domain directory, enter a password, and click on Create.
Download “Eclipse IDE for Java EE Developers” from http://www.eclipse.org/downloads/eclipse-packages/ and unzip it. The latest version is Oxygen.2 (4.7.2) and is now supported by OEPE.
Change to the Eclipse installation directory and run eclipse.
Select a directory as a work space and optionally select to use this as the default. You can close the Welcome screen so we can get to work.
Click on the Windows menu item and select the Servers view.
Then click on the link “No servers are available. Click this link to create a new server”.
Expand Oracle, select Oracle WebLogic Server Tools, and click on Next.
It will then go off and get a bunch of files including the Oracle Enterprise Pack for Eclipse (OEPE). You will need to accept the OEPE license agreement to finish the installation. Eclipse needs to restart to adopt the changes.
You will need to again go into the Server view, click on the link to create a server, and select Oracle WebLogic.
If you want to access the server remotely, you will need to enter the computer name; otherwise using localhost is sufficient for local access. Click Next.
On the next screen, browse to the directory name where you installed WLS 18.104.22.168.0 and then select the wlserver subdirectory (i.e., WebLogic home is always the wlserver subdirectory of the installation directory). Eclipse will automatically put in the value of JAVA_HOME for the “Java home” value. Click Next.
On the next screen, browse to the directory where you created the domain using the WLS Configuration Wizard. Click Next and Finish.
You can double-click on the new server entry that you just created to bring up a window for the server. Click on “Open Launch configuration” to configure any options that you want while running the server and then click OK.
Back in the server view, right click on the server entry and select start to boot the server.
A Console window will open to display the server log output and eventually you will see that the server is in RUNNING mode.
That covers the logistics of getting everything installed to run WLS in Eclipse. Now you can create your project and start your development. Let’s pick a Dynamic Web Project from the new options.
The project will automatically be associated with the server runtime that you just set up. For example, selecting a dynamic web project will display a window like the following where the only value to provide is the name of the project.
There are many tutorials on creating projects within Eclipse, once you get the tools set up.