This topic provides instructions for packaging and running a stand-alone Java-client application.
Before deploying a BI Beans Java-client application, complete the preparation for deploying a BI Beans application.
This procedure uses the following substitutions:
jdk_home
-- Represents the JDK home directory
deploy_home
-- Represents the directory where you
will run your application
The following list provides the steps that are required to deploy and run the application:
In JDeveloper, perform one of the following tasks depending on whether
you have an existing deployment profile (with the .deploy
extension):
If there is a deployment profile under your project in the System-Navigator, then edit the deployment profile.
If you do not have a deployment profile in your project, then create a deployment profile.
Right-click the deployment profile and choose Deploy to JAR file. The JAR file is created in the folder that you specified when you created the deployment profile. The JAR file contains the application classes, BI Beans runtime libraries, and third-party libraries that BI Beans requires.
Copy the JAR file to deploy_home
on the production
machine.
To prepare to run the application, ensure that the required OLAP services are available and running as described in the following steps:
On the production machine, open a command prompt window and ensure
that the JDK binaries (on Windows, jdk_home\bin
or, in UNIX, jdk_home/bin
) are in the PATH variable.
Ensure that the deployed JAR file, such as app1.jar
, is
in the the CLASSPATH.
To run the application, enter the following command under deploy_home
where applicationclassname
represents the class
name of your application: java <applicationclassname>
Example: java mypackage1.BIApplication1
To create a deployment profile, follow the procedure in the JDeveloper Help topic "Creating a Deployment Profile for J2EE Client Modules" but select the following libraries in the Which libraries are involved in dependency analysis box:
BIBeans Runtime
BC4J Runtime
Oracle JDBC
OLAP API 92
You can return to Step 2 of the deployment procedure.
To edit an existing deployment profile, perform the following steps:
In the System-Navigator, right-click the deployment file and select Settings.
Select Dependency Analyzer and select the following items in the Which libraries are involved in dependency analysis box:
BIBeans Runtime
BC4J Runtime
Oracle JDBC
OLAP API 92
Choose OK to complete the change to the profile.