Skip Headers
Oracle® Application Development Framework Developer's Guide
10g (10.1.3.1.0)

Part Number B28967-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

22.11 Deploying to Application Servers That Support JDK 1.4

If you are deploying to an application server that uses JDK 1.4, you need to configure JDeveloper to build your applications using JDK 1.4. By default, JDeveloper 10.1.3 uses JDK 1.5. If you build an application with JDK 1.5 and run it on an application server that supports JDK 1.4, you may get "unsupported class version" errors.

Application servers that support JDK 1.4 include Oracle Application Server Release 2 (10.1.2), WebLogic 8.1, and WebSphere.

To configure JDeveloper to build projects with JDK 1.4:

  1. Install J2SE 1.4 on the machine running JDeveloper.

  2. Configure JDeveloper with the J2SE 1.4 that you installed:

    1. In JDeveloper, choose Tools > Manage Libraries. This displays the Manage Libraries dialog.

    2. In the Manage Libraries dialog, choose the J2SE Definitions tab.

    3. On the right-hand side, click the Browse button for the J2SE Executable field and navigate to the J2SE_1.4/bin/java.exe file, where J2SE_1.4 refers to the directory where you installed J2SE 1.4.

    4. Click OK.

  3. Configure your project to use J2SE 1.4:

    1. In the Project Properties dialog for your project, select Libraries on the left-hand side.

    2. On the right-hand side, click the Change button for the J2SE Version field. This displays the Edit J2SE Definition dialog.

    3. In the Edit J2SE Definition dialog, on the left-hand side, select 1.4 under User.

    4. Click OK in the Edit J2SE Definition dialog.

    5. Click OK in the Project Properties dialog.

22.11.1 Switching Embedded OC4J to JDK 1.4

When you run an Oracle JDeveloper 10.1.3 application using the Embedded OC4J server, the application is configured for JDK 1.5. If you then try to switch to JDK 1.4, you will see JSP compile failures. To remedy this you need to force the application files to be re-compiled when OC4J is restarted with JDK 1.4. To configure Embedded OC4J to JDK 1.4:

  1. Configure JDeveloper 10.1.3.4 according to the steps above.

  2. Stop the embedded OC4J server instance.

  3. Delete the following directory:

    ORACLE_HOME/j2ee/instance/application-deployments

  4. Start the embedded server again.