The objective of this exercise is to deploy a simple BI Beans Java application using JDeveloper.
After development, a Java application can be deployed to a production machine. JDeveloper provides deployment tools to help you through this process.
This exercise guides you through the steps that are necessary to deploy your tutorial application.
Ensure that you have JDK 1.3.1 installed on the production machine. The JDK home
directory will be referred to as <jdk_home>
and the directory
where you will run your application will be referred to as <deploy_home>
.
Before you deploy your application, copy your objects to the BI Beans Catalog,
which is a persistent database. For directions, follow the tutorial
Copying Objects to the BI Beans Catalog to copy the objects.
After the objects are copied, the runtime settings for the application
are updated automatically to use the objects in the Catalog at runtime.
You are now ready to edit the deployment profile that was created by the wizard and to create a JAR file for the application.
The JAR file will be created in the folder that you specified
when you created the deployment profile. If you do not
remember the directory where you saved the JAR file, you can position the
cursor over the deployment profile and a tool tip that contains the location
of the JAR file is displayed.
The JAR file is now ready to be deployed. It contains the application classes and the BIBeans runtime libraries.
<
deploy_home>
on the
production machine.To prepare to run the application, ensure that the required OLAP services are available and running.
<jdk_home>/jre/lib/rt.jar
)
are in the CLASSPATH and that the JDK Binaries (that is, the files in<jdk_home>/bin
)
are in the PATH. set classpath=<deploy_home>/bijavaclientarchive1.jar;%classpath%
<deploy_home>
:java <applicationclassname>
java mypackage1.BIApplication1
After a short time, the application will start.
After deployment, you may want to reset the runtime settings so that the application
will reference objects locally during development in JDeveloper. To do so, in
the System-Navigator pane, right-click the BI Configuration file (for example,
Project1BIConfig1.xml) and choose Settings
from the popup menu. Select the Use design settings
check box and choose OK.
You have successfully deployed a simple Java application from JDeveloper.