This article describes how to integrate WebLogic Server 126.96.36.199.0 running on Java SE 11 and Oracle Enterprise Pack for Eclipse (OEPE) 188.8.131.52 into the latest supported version of Eclipse IDE for Java EE Developers.
You need to start by acquiring all the parts-Java SE Development Kit, WebLogic Server, Eclipse IDE, and Oracle Enterprise Pack for Eclipse.
Go to https://www.oracle.com/java/technologies/javase-jdk11-downloads.html to download the Java SE Development Kit (Neither WLS nor Eclipse). WLS 184.108.40.206.0 also supports Java SE 8, but we want to use the latest features. Accept the license agreement, download the binary file, and install it on your computer. Set your JAVA_HOME as the installation directory and add $JAVA_HOME/bin to your PATH. On Windows, this looks like
Next, obtain and install a copy of WebLogic Server (WLS). The latest WLS versions currently supported by OEPE are WLS 220.127.116.11.0 (Java SE 8 or 11 and Java EE 8) and WLS 18.104.22.168.0 (Java SE 8 and Java EE 7). Go to the standard WLS download page in the Oracle Fusion Middleware Software Download and download the 22.214.171.124 universal installer. If you are running on Windows, the command window to run the jar command needs to be run as an administrator.
java -jar fmw_126.96.36.199.0_wls_lite_generic.jar
You can use all default values. You need to specify an installation directory. You may want to install examples. On the last page, make sure to click "Automatically launch the Quick Start Configuration Wizard" to create the domain so that we can use it in this process.
In the configuration wizard, use the default values. You may want to change the domain directory. Enter the password and click Create.
Download "Eclipse IDE for Java EE Developers" from http://www.eclipse.org/downloads/eclipse-packages/ and unzip it. The latest version tested by OEPE is 2020-06.
Change to the Eclipse installation directory and run eclipse.
Choose a directory as the workspace and choose to use it as the default. You can turn off the welcome screen so that we can start working.
If you are running behind a firewall and need to configure a proxy server to download files from external websites, please select the "Preferences" menu item under the "Window" menu, expand the "General" node in the preference tree and select "Network Connections", Change the drop-down menu item to manual, edit the http and https entries to provide the name and port of the proxy server.
There are several ways to install OEPE. For this article, we will install OEPE from Eclipse. Use this procedure to install OEPE from the repository in Oracle Technology Network. From the Eclipse main menu, select Help, and then select Install new software.
Click Add to add a new update site. Enter the "Name" Oracle and enter the "Location" http://download.oracle.com/otn_software/oepe/188.8.131.52/photon/repository/ . Then click "Add".
In the software list, select the required subcomponents (document, ADF, MAF, and/or tools), and then click Next. The following figure expands the available tools.
Confirm the information displayed in the installation details and click Next. Review the license on the Review Licenses page, and then click Finish. The installation will continue in the background. Click on the progress bar at the bottom right and wait for it to complete. Eventually it will complete and ask you if you want to restart Eclipse. Eclipse needs to be restarted to adopt the changes.
Click the Windows menu item, select Show View, and then select the Servers view.
Click the link "No server available. Click this link to create a new server", expand Oracle, and select Oracle WebLogic Server. If you want to access the server remotely, you need to enter the computer name; otherwise, localhost is sufficient for local access. Click Next.
On the next screen, browse to the name of the directory where WLS 184.108.40.206 is installed, and select the wlserver subdirectory (ie, WebLogic home is always the wlserver subdirectory under the installation directory). Eclipse will automatically put the value of JAVA_HOME into the "Java home" value. Click Next.
On the next screen, browse to the directory where you created the domain using the WLS configuration wizard (you can also click the button to select from known domains). Click Next and Finish.
You can double-click the new server entry you just created to display the overview window of that server.
Click Open Launch Configuration to configure any options required to run the server, and then click OK.
Return to the server view, right-click the server entry and select "Start" to start the server.
The console window will open to display the server log output, and finally you will see that the server is in RUNNING mode.
This covers the logistics of installing everything to run WLS in Eclipse. Now you can create your project and start your development. Let's choose a dynamic Web project from the "File" -> "New" option.
This item will automatically be associated with the server runtime you just set up. For example, selecting a dynamic Web project will display the window shown below, where the only value provided is the project name.
After setting up the tools, there are many tutorials on creating projects in Eclipse.