ant all produces several missing package errors

Asked by LarryE

After downloading https://launchpadlibrarian.net/26596404/libformula-openoffice.org_0.2.0-OOo31.orig.tar.gz,
then unzipping and untarring, tried building with ant:

/home/evansl/download/libformula/libformula-openoffice.org-0.2.0-OOo31 $ ant all
Buildfile: build.xml

prepare:

classes:
    [javac] Compiling 238 source files to /home/evansl/download/libformula/libformula-openoffice.org-0.2.0-OOo31/build/classes
    [javac] /home/evansl/download/libformula/libformula-openoffice.org-0.2.0-OOo31/source/org/pentaho/reporting/libraries/formula/EvaluationException.java:32: package org.pentaho.reporting.libraries.base.util does not exist
    [javac] import org.pentaho.reporting.libraries.base.util.StackableException;
    [javac] ^
    [javac] /home/evansl/download/libformula/libformula-openoffice.org-0.2.0-OOo31/source/org/pentaho/reporting/libraries/formula/EvaluationException.java:39: cannot find symbol
    [javac] symbol: class StackableException
    [javac] public class EvaluationException extends StackableException
    [javac] ^
    [javac] /home/evansl/download/libformula/libformula-openoffice.org-0.2.0-OOo31/source/org/pentaho/reporting/libraries/formula/DefaultFormulaContext.java:44: package org.pentaho.reporting.libraries.base.config does not exist
    [javac] import org.pentaho.reporting.libraries.base.config.Configuration;
    [javac] ^
.
.
.

My system is:

/home/evansl/download/libformula/libformula-openoffice.org-0.2.0-OOo31 $ uname -a
Linux evansl-desktop 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux

How can I get the missing packages installed on my system. I've looked in synaptic and searched
for both libformula and pentaho and installed all relevant packages.

TIA.

-regards,
Larry

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libformula-openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
LarryE
Solved:
Last query:
Last reply:
Revision history for this message
LarryE (cppljevans) said :
#1

Downloading another archive and changing java args worked.

Downloaded:

  http://iweb.dl.sourceforge.net/project/jfreereport/99.%20Archive/16.%20LibFormula/0.1.18.3/libformula-0.1.18.3.tar.gz

unpacked and built with:

  ~/download/libformula/libformula-0.1.18.3 $ ant
Buildfile: build.xml

initialise:

compile:
    [mkdir] Created dir: /home/evansl/download/libformula/libformula-0.1.18.3/build
    [mkdir] Created dir: /home/evansl/download/libformula/libformula-0.1.18.3/build/src
    [mkdir] Created dir: /home/evansl/download/libformula/libformula-0.1.18.3/build/bin
     [copy] Copying 212 files to /home/evansl/download/libformula/libformula-0.1.18.3/build/src
    [javac] Compiling 212 source files to /home/evansl/download/libformula/libformula-0.1.18.3/build/bin
     [copy] Copying 67 files to /home/evansl/download/libformula/libformula-0.1.18.3/build/bin
      [jar] Building jar: /home/evansl/download/libformula/libformula-0.1.18.3/libformula-0.1.18.3.jar
   [delete] Deleting directory /home/evansl/download/libformula/libformula-0.1.18.3/build

.
.
.
all:

BUILD SUCCESSFUL
Total time: 21 seconds
~/download/libformula/libformula-0.1.18.3 $

However, trying to run resulted in:

~/download/libformula/libformula-0.1.18.3 $ java -cp libformula-0.1.18.3.jar org.jfree.formula.parser.FormulaParser
Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/util/StackableException
 at java.lang.ClassLoader.defineClass1(Native Method)

googling for org/jfree/util/StackableException showed:

http://www.jfree.org/jcommon/api/org/jfree/util/StackableException.html

searching for jfree in synaptic showed:

  libjcommon-java

the installed files for that package showed:

  /usr/share/java/jcommon.jar

so added that to the -cp arg to get successful run:

~/download/libformula/libformula-0.1.18.3 $ java -cp libformula-0.1.18.3.jar:/usr/share/java/jcommon.jar org.jfree.formula.parser.FormulaParser
(1)
~/download/libformula/libformula-0.1.18.3 $