Legal | Privacy
Installing, Configuring, and Building Applications using JDeveloper 10g on Linux

Installing, Configuring, and Building Applications using JDeveloper 10g on Linux

This tutorial guides you through the installation and configuration of JDeveloper 10g on the Linux operating system.

Topics

This lesson will discuss the following:

Overview
Step 1 - Install the J2SDK for Linux

Step 2 - Install JDeveloper 10g

Step 3 - Create an Application
Summary

This tutorial takes about an hour to complete.

Move your mouse over this icon to show all screenshots. You can also move your mouse over each individual icon to see only the screenshot associated with it.


Overview

JDeveloper 10g is written in Java, making it 100% portable to various operating systems. This lesson shows how to install JDeveloper 10g on the popular Linux operating system, and the configurations for creating and running an application on Linux.

Back to Topic List

You have been given the task of installing JDeveloper 10g on the Linux operating system. You need to configure Linux for running JDeveloper 10g and configure applications created using JDeveloper 10g for running on Linux.


Step 1 - Install the J2SDK for Linux

Back to Topic List

The complete installation of JDeveloper is configured to use Java Sun J2SE 1.4.2_03 for Windows platforms. To install JDeveloper on Linux, first perform the following steps to install the SDK.

1.

Download the Java™ 2SE, version 1.4.2_03 for Linux from:

http://java.sun.com/products/archive/j2se/1.4.2_03/index.html

 

2.

Change the bin file to be executable by typing the following in the command prompt at the location where you downloaded the file:

$ chmod +x j2sdk-1_4_2_03-linux-i586.bin

Move your mouse over this icon to see the image

Note that if you downloaded the rpm version of the file, this command would contain the rpm.bin extension.

3.

Install the excutable from the command prompt.

$ mkdir /usr/java
$ cd /usr/java
$$HOME/j2sdk-1_4_2_03-linux-i586.bin

Read and accept the license agreement. You should see the following text as the last three lines of the installation:

Creating j2sdk1.4.2_03/jre/lib/plugin.jar
Creating j2sdk1.4.2_03/jre/javaws/javaws.jar
Done.

Move your mouse over this icon to see the image

 

4.

Create an environment variable for JAVA_HOME by typing either of the following:

$ setenv JAVA_HOME /usr/java/j2sdk1.4.2_03 for csh

or

$ export JAVA_HOME=/usr/java/j2sdk1.4.2_03 for bash

Move your mouse over this icon to see the image

 

5.

Add the J2SDK path to your PATH variable by typing either of the following:

$ setenv PATH ${PATH}:${JAVA_HOME}/bin for csh

or

export PATH=${PATH}:${JAVA_HOME)/bin for bash

Move your mouse over this icon to see the image

Note: You may want to add the environment entries in steps 4 and 5 to the ${HOME}/.bash_profile (for bash) or ${HOME}/.login (for csh) scripts, in addition to the current terminal window.

 

6.

Test the installation by checking the version of Java installed:

$ java -version

Move your mouse over this icon to see the image

 

 

Step 2 - Install JDeveloper 10g

Back to Topic List

Perform the following steps to install JDeveloper 10g on Linux.

1.

Download JDeveloper10g version 9.0.5.2 from OTN:

 

 

2.

Extract the files into a directory named /jdeveloper.

unzip jdev9052.zip -d /jdeveloper

You may wish to extract the files to /usr/local/jdeveloper or /$HOME/jdeveloper. Note that if the install directory is not under $HOME, then you will need to be the root user in order to extract the files.

 

3.

Now make a backup copy of JDeveloper's configuration file and add the JAVA_HOME location to the SetJavaHome property in the file.

$ cd /jdeveloper/jdev/bin
$ cp jdev.conf jdev.conf.backup
$ echo "SetJavaHome $JAVA_HOME" >> jdev.conf

Move your mouse over this icon to see the image

 

4. Change permissions for the JDeveloper and Oracle Java Compiler executables to execute.

$ chmod +x /jdeveloper/jdev/bin/jdev
$ chmod +x /jdeveloper/jdev/bin/ojc

Move your mouse over this icon to see the image

For further information on setting permissions, see install.html located in the /jdeveloper/jdev directory.

 

5.

Run JDeveloper by typing jdev from the jdev/bin directory in the terminal window.

Move your mouse over this icon to see the image

 

6.

If you see a warning message concerning the J2SDK version, click Yes to run JDeveloper using the J2SDK that you've installed. J2SDK version 1.4.2_03 is supported on the Linux Operating System.

Move your mouse over this icon to see the image

 

 

Step 3 - Create an Application

Back to Topic List

Perform the following steps to test the installation by creating a simple web application and running it.

1.

Right click Applications in the Application Navigator and select New Application Workspace.

Move your mouse over this icon to see the image

 

2.

Create the Workspace in the default location.

Move your mouse over this icon to see the image

 

3.

Double click StrutsPageFlow in the Application Navigator to open the Page Flow Diagram in the editor.

Move your mouse over this icon to see the image

 

4.

Select Page from the Component Palette and click inside the Page Flow Diagram to create the page reference.

Move your mouse over this icon to see the image

 

5.

Double click untitled1.jsp to create the JSP and open it in the visual JSP editor. Type the text Hello World into the editor.

Move your mouse over this icon to see the image

 

6.

Next specify a browser for JDeveloper to launch when the JSP is run. Select Preferences from the Tools menu.

Move your mouse over this icon to see the image

 

7.

Select Web Browser/Proxy from the categories list and enter the command for your preferred browser.

Move your mouse over this icon to see the image

Select Yes to use the specified command even though the executable might not be verified.

 

8.

Right click the JSP in the visual editor and select Run untitled1.jsp to run the JSP in the embedded OC4J server.

Move your mouse over this icon to see the image

 

9.

The OC4J server is started, and the JSP displays in the browser you specified.

Move your mouse over this icon to see the image

 

 

In this tutorial, you have learned how to install the J2SDK for Linux, and how to install and configure JDeveloper for use on the Linux operating system. After these initial steps, JDeveloper behaves the same as on any other operating system, and you may wish to review additional tutorials in order to create robust applications using JDeveloper.

Download page for J2SE version 1.4.2_03

Download page for JDeveloper 10g version 9.0.5.2

Other tutorials in this Oracle By Example (OBE) series

 

Move your mouse over this icon to hide all screenshots

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy