Oracle® Application Development Framework Developer's Guide 10g (10.1.3.1.0) Part Number B28967-01 |
|
|
View PDF |
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:
Install J2SE 1.4 on the machine running JDeveloper.
Configure JDeveloper with the J2SE 1.4 that you installed:
In JDeveloper, choose Tools > Manage Libraries. This displays the Manage Libraries dialog.
In the Manage Libraries dialog, choose the J2SE Definitions tab.
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.
Click OK.
Configure your project to use J2SE 1.4:
In the Project Properties dialog for your project, select Libraries on the left-hand side.
On the right-hand side, click the Change button for the J2SE Version field. This displays the Edit J2SE Definition dialog.
In the Edit J2SE Definition dialog, on the left-hand side, select 1.4 under User.
Click OK in the Edit J2SE Definition dialog.
Click OK in the Project Properties dialog.
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:
Configure JDeveloper 10.1.3.4 according to the steps above.
Stop the embedded OC4J server instance.
Delete the following directory:
ORACLE_HOME/j2ee/instance/application-deployments
Start the embedded server again.