Installation of JDeveloper on Linux
Installation of JDeveloper is, in general, a straightforward task. So, "why have a recipe for this?" you might ask. Did you notice the title? It says "on Linux". You will be amazed at the number of questions asked about this topic on a regular basis on the JDeveloper and ADF OTN Forum. Besides, in this recipe, we will also talk about configuration options and the usage of 64-bit JDK along with JDeveloper.
Getting ready
You will need a Linux installation of JDeveloper to use this recipe. For the 64-bit configuration, you will need a 64-bit Linux distribution and a 64-bit version of the Java SDK. We will install the latest version of JDeveloper, which is version 11.1.2.1.0 at the time of this writing.
How to do it...
1. Download JDeveloper from the Oracle JDeveloper Software download page: http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html.
2. Accept the license agreement, select Linux Install, and click on Download File to begin with the download.
3. Once the file is downloaded, open a console window and start the installation, by typing the following commands:
$ chmod u+x ./jdevstudio11121install.bin $ ./jdevstudio11121install.bin
4. On the Choose Middleware Home Directory page, select Create a new Middleware Home and enter the Middleware home directory.
5. On the Choose Install Type page, select Complete to ensure that JDeveloper, ADF and WebLogic Server are installed.
6. Once you confirm your selections, proceed with the installation.
7. Upon a successful installation, you will see the Installation Complete page. Uncheck the Run Quickstart checkbox and click Done.
8. To start JDeveloper, go to the
/jdeveloper/jdev/bin
directory under the Middleware home directory you specified during the installation and type the following:$ ./jdev
9. To make things easier, create an application launcher on your Linux desktop for the specific path indicated in the previous step.
How it works...
As noted earlier, installing JDeveloper on Linux is a straightforward task. You simply have to download the binary executable archive and run it. Ensure that you give execute permissions to the installation archive file and run it as noted. If you are having trouble seeing the Welcome page in graphical mode, ensure that the $DISPLAY
environment variable is set correctly. The important thing to know here is the name of the file to execute in order to start JDeveloper. As mentioned, it is called jdev
and it is located in the /jdeveloper/jdev/bin
directory under the Middleware home directory.
There's more...
Now that you have successfully installed JDeveloper, let's spend some time configuring it for optimal performance. Configuration parameters are added to any of the jdev.conf
or ide.conf
files located in the /jdeveloper/jdev/bin
and /jdeveloper/ide/bin
directories respectively, under the Middleware home directory.
The following is a list of the important tuning configuration parameters with some recommendations for their values:
Parameter |
Description |
---|---|
AddVMOption -Xmx |
This parameter is defined in the |
AddVMOption -Xms |
This parameter is also defined in the |
AddVMOption -XX:MaxPermSize |
This parameter indicates the size of the JVM permanent generation used to store class definitions and associated metadata. Increase this value if needed in order to avoid |
AddVMOption -DVFS_ENABLE |
Set it to |
Configuring JDeveloper with a 64-bit JDK
The JDeveloper installation is bundled by default with a 32-bit version of the Java JDK, which is installed along with JDeveloper. On a 64-bit system, consider running JDeveloper with a 64-bit version of the JDK. First download and install the 64-bit JDK. Then configure JDeveloper via the SetJavaHome
configuration parameter in the jdev.conf
. This parameter should be changed to point to the location of the 64-bit JDK. Note that the 64-bit JDK is supported by JDeveloper versions 11.1.1.4.0 and higher.
Configuring the JDeveloper user directory
This is the directory used by JDeveloper to identify a default location where files will be stored. JDeveloper also uses this location to create the integrated WebLogic domain and to deploy your web applications when running them or debugging them inside JDeveloper. It is configured via the SetUserHomeVariable
parameter in the jdev.conf
file. It can be set to a specific directory or to an environment variable usually named JDEV_USER_DIR
. Note that when JDeveloper is started with the singleuser
command-line argument, the user directory is created inside the /jdeveloper
directory under the Middleware home directory.
Note
Before starting your development in JDeveloper, consider setting the XML file encoding for the XML files that you will be creating in JDeveloper. These files among others include, the JSF pages, the business component metadata files, application configuration files, and so on. You set the encoding via the Tools | Preferences… menu. Select the Environment node on the left of the Preferences dialog and the encoding from the Encoding drop-down. The recommended setting is UTF-8 to support multi-lingual applications.
Note
The minimum recommended open file descriptors limit for JDeveloper on a Linux system is 4096. Use the command ulimit n
to determine the open file descriptors limit for your installation and change it if needed in the limits.conf
file located in /etc/security/
directory.