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.
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.
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.
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
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
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:
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.
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.
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.
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.
2.
Create the Workspace in the default location.
3.
Double click StrutsPageFlow in the Application Navigator to open
the Page Flow Diagram in the editor.
4.
Select Page from the Component Palette and click inside the Page
Flow Diagram to create the page reference.
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.
6.
Next specify a browser for JDeveloper to launch when the JSP is run.
Select Preferences from the Tools menu.
7.
Select Web Browser/Proxy from the categories list and enter the
command for your preferred browser.
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.
9.
The OC4J server is started, and the JSP displays in the browser you specified.
Summary
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.