Caused by: java.lang.ClassNotFoundException: org.pentaho.reporting.libraries.formula.FormulaContext
<p>I am invoking a Pentaho Kettle Job using java. 
    The transformations were developed using <code>PDI CE version 5.4.0.1-130</code> 
    I have added the below maven dependencies in pom.xml:</p>

<pre><code>        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-kettle&lt;/groupId&gt;
            &lt;artifactId&gt;kettle-core&lt;/artifactId&gt;
            &lt;version&gt;5.0.0.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-kettle&lt;/groupId&gt;
            &lt;artifactId&gt;kettle-dbdialog&lt;/artifactId&gt;
            &lt;version&gt;5.0.0.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-kettle&lt;/groupId&gt;
            &lt;artifactId&gt;kettle-engine&lt;/artifactId&gt;
            &lt;version&gt;5.0.0.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-kettle&lt;/groupId&gt;
            &lt;artifactId&gt;kettle-ui-swt&lt;/artifactId&gt;
            &lt;version&gt;5.0.0.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-kettle&lt;/groupId&gt;
            &lt;artifactId&gt;kettle5-log4j-plugin&lt;/artifactId&gt;
            &lt;version&gt;5.0.0.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
    &lt;groupId&gt;org.codehaus.janino&lt;/groupId&gt;
    &lt;artifactId&gt;janino&lt;/artifactId&gt;
    &lt;version&gt;2.5.16&lt;/version&gt;
&lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;pentaho-kettle&lt;/groupId&gt;
            &lt;artifactId&gt;kettle-db&lt;/artifactId&gt;
            &lt;version&gt;4.4.3.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.mariadb.jdbc&lt;/groupId&gt;
            &lt;artifactId&gt;mariadb-java-client&lt;/artifactId&gt;
            &lt;version&gt;1.1.9&lt;/version&gt;
        &lt;/dependency&gt;
      &lt;dependency&gt;
    &lt;groupId&gt;simple-jndi&lt;/groupId&gt;
    &lt;artifactId&gt;simple-jndi&lt;/artifactId&gt;
    &lt;version&gt;0.11.4.1&lt;/version&gt;
&lt;/dependency&gt;
       &lt;dependency&gt;
            &lt;groupId&gt;com.lowagie&lt;/groupId&gt;
            &lt;artifactId&gt;itext&lt;/artifactId&gt;
            &lt;version&gt;4.2.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libbase&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libcss&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libdocbundle&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libfonts&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libformat&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
  &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
  &lt;artifactId&gt;libformula&lt;/artifactId&gt;
  &lt;version&gt;1.2.8.3&lt;/version&gt;
&lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libloader&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libpensol&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libpixie&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;librepository&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libserializer&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libsparkline&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
            &lt;artifactId&gt;libxml&lt;/artifactId&gt;
            &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libswing&lt;/artifactId&gt;
          &lt;version&gt;1.2.8.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-reporting-engine&lt;/groupId&gt;
            &lt;artifactId&gt;pentaho-reporting-engine-classic-core&lt;/artifactId&gt;
            &lt;version&gt;3.9.2.2&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pentaho-reporting-engine&lt;/groupId&gt;
            &lt;artifactId&gt;pentaho-reporting-engine-classic-extensions&lt;/artifactId&gt;
            &lt;version&gt;3.9.2.2&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
        &lt;/dependency&gt;
</code></pre>

<p>Repository in pom is referring to <code>http://repo.pentaho.org/artifactory/repo</code></p>

<p>When I run the same code in my local, which is Windows 7, it runs fine. When I am running the code in Linux, I am getting the error </p>

<pre><code>Caused by: java.lang.ClassNotFoundException: org.pentaho.reporting.libraries.formula.FormulaContext
</code></pre>

<p>I tried changing the version of <code>pentaho-kettle</code> to 5.4.0.1-130. But then it threw an exception on <code>iPentahoSession</code>.</p>

<p>Can someone help me with this?</p>

<p>Thanks in advance.</p>

<p>Bhavya</p>