Using External Jars import in Pentaho Data Integration

Published by

on


[Update 2023]: This blog is now applicable for the older versions of Pentaho Data Integration. Pentaho version 8, 9 and above are not applicable and it does not support this process. An Update blog will be available soon for the later version.

Sometimes during the phase of the development, we might need to import some External JAR to the Pentaho Kettle Code. Pentaho DI has a step like User Defined Java Class where we can use some part of the Java code. Though this step doesn’t allow you to do full scale Java development, but still you can use some java features like methods, imports, etc. For more you can Pentaho Wiki. Now suppose, you have to get some java methods imported from a third party jar/ external jar, you need to do some changes as below:

Step-1: Create a library folder libext

Inside the /design-tools/data-integration/ folder of your pentaho installation, create a folder named libext. We would use this folder for storing the external jars / third party jars.

Capture22

Step-2: Configure launcher.properties file

Inside the same directory as above, you would find a folder called launcher. Open that folder and there you would find a property file as launcher.properties.

You need to add the above folder configuration to the classpath and libraries section of the code.

Capture

Note i have added :../libext to the above file since i want Kettle to read the content from that file too.

Subscribe to continue reading

Subscribe to get access to the rest of this post and other subscriber-only content.

25 responses to “Using External Jars import in Pentaho Data Integration”