Java development for Pentaho

Contents:

Editing JAR files

JAR (Java Archive) files are zip bundles, and so can be opened by any utility that understands zip.

You can use the jar utility that comes with the Sun JDK to extract and replace files inside a jar.

For example, if you want to edit the properties of the Pentaho User Console, you will need to edit the file MantleSettings.properties file inside tomcat/webapps/pentaho/WEB-INF/lib/mantle-<version>.jar. This path for this file inside the jar is org/pentaho/mantle/server/.

First extract the file:

$ jar xf mantle-<version>.jar org/pentaho/mantle/server/MantleSettings.properties

This will extract that path to the working directory. Edit the file as you like. Then you will need to put it back in:

$ jar uf mantle-<version>.jar org/pentaho/mantle/server/MantleSettings.properties

Resources


Creator: Sridhar Dhanapalan on 2009/09/30 13:04
XWiki Enterprise 1.7.2.16857 - Documentation