Buildomatic unable to find class during export

We are attempting to export reports from a bitnami Jasperserver 4.1 CE installation in preparation for an upgrade, however it seems that the export script is unable to locate one of its dependencies:

vagrant@localhost:/opt/bitnami/apps/jasperserver/buildomatic$ ./ --uris / --output-dir
Using CE setup
/opt/bitnami/java/bin/java -cp "./..install_resources/" -Xms128m -Xmx512m -XX:PermSize=32m com.jaspersoft.jasperserver.export.ExportCommand ./ --uris / --output-dir
Exception in thread "main" java.lang.NoClassDefFoundError: com/jaspersoft/jasperserver/export/ExportCommand
Caused by: java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.export.ExportCommand
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: com.jaspersoft.jasperserver.export.ExportCommand.  Program will exit.
How can we add this dependency to the class path for the execution of this script?
Thanks in advance,
chazbone's picture
Joined: Jun 6 2013 - 11:57am
Last seen: 9 years 9 months ago

1 Answer:

I had a similar problem when I wasn't in the buildomatic directory.

on a side note: shouldn't you use the output-zip option if you want to export a zip file?


blog_1's picture
Joined: Apr 10 2013 - 10:45pm
Last seen: 9 years 9 months ago