OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] fop 0.9 on Ubuntu with Java2 SDK1.5 Sun


I am using a (set of) masked gentoo ebuild(s) that has (have) a fop
script which collects the proper classpath by querying java at runtime
(many gentoo shell scripts that call java programs do this, so this
isn't very special...).

anyway, here is the call it ends up issuing - maybe that will give you
an idea of the correct syntax:

exec "/opt/blackdown-jdk-1.4.2.03/bin/java" -classpath
"/usr/share/commons-io-1/lib/commons-io.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/usr/share/avalon-framework-4.2/lib/avalon-framework.jar:/usr/share/batik-1.6/lib/batik-dom.jar:/usr/share/batik-1.6/lib/batik-ttf2svg.jar:/usr/share/batik-1.6/lib/batik-transcoder.jar:/usr/share/batik-1.6/lib/batik-squiggle.jar:/usr/share/batik-1.6/lib/batik-util.jar:/usr/share/batik-1.6/lib/batik.jar:/usr/share/batik-1.6/lib/batik-css.jar:/usr/share/batik-1.6/lib/batik-ext.jar:/usr/share/batik-1.6/lib/batik-awt-util.jar:/usr/share/batik-1.6/lib/resolver.jar:/usr/share/batik-1.6/lib/batik-parser.jar:/usr/share/batik-1.6/lib/batik-gui-util.jar:/usr/share/batik-1.6/lib/batik-slideshow.jar:/usr/share/batik-1.6/lib/which.jar:/usr/share/batik-1.6/lib/batik-svgpp.jar:/usr/share/batik-1.6/lib/batik-xml.jar:/usr/share/batik-1.6/lib/batik-rasterizer.jar:/usr/share/batik-1.6/lib/batik-svg-dom.jar:/usr/share/batik-1.6/lib/batik-gvt.jar:/usr/share/batik-1.6/lib/batik-all.jar:/usr/share/batik-1.6/lib/batik-bridge.jar:/usr/share/batik-1.6/lib/batik-svggen.jar:/usr/share/batik-1.6/lib/batik-extension.jar:/usr/share/batik-1.6/lib/batik-script.jar:/usr/share/batik-1.6/lib/batik-swing.jar:/usr/share/jeuclid/lib/jeuclid.jar:/usr/share/fop/lib/mathml-fop.jar:/usr/share/fop/lib/fop.jar:."
org.apache.fop.cli.Main "foo.fo" "foo.pdf"

if you want to know how to dynamically build a classpath, try this
command (or similar):

java-config -p 'batik-1.6,fop'

the arguments given to the command are (in my case) comma delimited
directory names under /usr/share/ where these packages are installed

good luck
On 2/28/06, Euis Luhuanam <eluhu6@gmail.com> wrote:
> Hi,
>
> I would like to try fop 0.9 on Ubuntu with Java2 SDK1.5 Sun on
> Ubuntu. I always get error message :
> ''Exception in thread "main" java.lang.NoSuchMethodError: main''
>
> Searching google, it is said that the error is related to CLASSPATH.
> May I know how to set a proper CLASSPATH, since my "fop" script
> contains only this following:
>
> ----------------
> #!/bin/sh
> JAVAL=/home/el6/work/fop/lib
> JAVAF=/home/el6/work/fop/build
>
> CLASSPATH=""
> CLASSPATH=$JAVAL/batik-all-1.6.jar:$CLASSPATH
> CLASSPATH=$JAVAL/avalon-framework-4.2.0.jar:$CLASSPATH
> CLASSPATH=$JAVAL/commons-io-1.1.jar:$CLASSPATH
> CLASSPATH=$JAVAL/commons-logging-1.0.4.jar:$CLASSPATH
> CLASSPATH=$JAVAL/serializer-2.7.0.jar:$CLASSPATH
> CLASSPATH=$JAVAL/xalan-2.7.0.jar:$CLASSPATH
> CLASSPATH=$JAVAL/xercesImpl-2.7.1.jar:$CLASSPATH
> CLASSPATH=$JAVAL/xml-apis-1.3.02.jar:$CLASSPATH
> CLASSPATH=$JAVAF/fop.jar:$CLASSPATH
> export CLASSPATH
> java $JAVA_OPTS org.apache.fop.apps.Fop "$@"
>
> exit 0
> ---------------
>
> regards,
>
> --
> EL6: Euis Luhuanam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>


--
http://chris.chiasson.name/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]