引起:java.lang.ClassNotFoundException:org.pentaho.reporting.libraries.formula.FormulaContext

时间:2016-02-09 00:18:01

标签: java maven pdi

我正在使用java调用Pentaho Kettle Job。     转换是使用 <dependency> <groupId>pentaho-kettle</groupId> <artifactId>kettle-core</artifactId> <version>5.0.0.1</version> </dependency> <dependency> <groupId>pentaho-kettle</groupId> <artifactId>kettle-dbdialog</artifactId> <version>5.0.0.1</version> </dependency> <dependency> <groupId>pentaho-kettle</groupId> <artifactId>kettle-engine</artifactId> <version>5.0.0.1</version> </dependency> <dependency> <groupId>pentaho-kettle</groupId> <artifactId>kettle-ui-swt</artifactId> <version>5.0.0.1</version> </dependency> <dependency> <groupId>pentaho-kettle</groupId> <artifactId>kettle5-log4j-plugin</artifactId> <version>5.0.0.1</version> </dependency> <dependency> <groupId>org.codehaus.janino</groupId> <artifactId>janino</artifactId> <version>2.5.16</version> </dependency> <dependency> <groupId>pentaho-kettle</groupId> <artifactId>kettle-db</artifactId> <version>4.4.3.3</version> </dependency> <dependency> <groupId>org.mariadb.jdbc</groupId> <artifactId>mariadb-java-client</artifactId> <version>1.1.9</version> </dependency> <dependency> <groupId>simple-jndi</groupId> <artifactId>simple-jndi</artifactId> <version>0.11.4.1</version> </dependency> <dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>4.2.0</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libbase</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libcss</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libdocbundle</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libfonts</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libformat</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libformula</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libloader</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libpensol</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libpixie</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>librepository</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libserializer</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libsparkline</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libxml</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libswing</artifactId> <version>1.2.8.3</version> </dependency> <dependency> <groupId>pentaho-reporting-engine</groupId> <artifactId>pentaho-reporting-engine-classic-core</artifactId> <version>3.9.2.2</version> <type>jar</type> </dependency> <dependency> <groupId>pentaho-reporting-engine</groupId> <artifactId>pentaho-reporting-engine-classic-extensions</artifactId> <version>3.9.2.2</version> <type>jar</type> </dependency> 开发的     我在pom.xml中添加了以下maven依赖项:

http://repo.pentaho.org/artifactory/repo

pom中的存储库指的是Caused by: java.lang.ClassNotFoundException: org.pentaho.reporting.libraries.formula.FormulaContext

当我在本地运行相同的代码(Windows 7)时,运行正常。当我在Linux中运行代码时,我收到错误

pentaho-kettle

我尝试将iPentahoSession的版本更改为5.4.0.1-130。但后来它在product_sales.csv上引发了一个例外。

有人可以帮我这个吗?

提前致谢。

巴维亚

0 个答案:

没有答案