Installing Java Classes on Essbase Server

Java classes must be compiled in a JAR file, using the JDK jar tool.

  To create a .jar file and install it on an Essbase Server:

  1. Navigate to the directory where the .class file resides; at a command prompt, enter this command:

    jar cf jar_filename class_filename

    For example:

    jar cf CalcFunc.jar CalcFunc.class
  2. On the computer running Essbase Server, copy the .jar file to one of the following directories (if the directory does not exist, create it):

    • For .jar files containing global custom-defined functions:

      ARBORPATH/java/udf/
    • For .jar files to be used only with specific applications:

      ARBORPATH/app/appName/udf/

      where appName is the name of the application where the local custom-defined function will be used.

    If the .jar file is subsequently placed in another location, you must modify the CLASSPATH variable to include the full path and filename for the .jar file.

  3. If the functions will be used only by specific applications, restart those applications in Essbase. Otherwise, restart Essbase Server.