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] still setting up


On Fri, 2007-11-16 at 10:48 +0100, Stefan Heuer wrote:
> Craig White schrieb:
> 
> > > I'm on Linux... ';' seems right
> > >   
> >   
> 
> > > # echo $CLASSPATH
> > > /var/www/html/docbook-xsl/extensions/saxon65.jar:\
> > > /var/www/html/docbook-xsl/extentions/xalan27.jar:\
> > > /var/www/html/saxon/saxon.jar:\
> > > /var/www/html/saxon/xercesImpl.jar
> > >
> > >   
> >   
> Then you have to set the CLASSPATH property right. Anyway you have the
> saxon archive two times in your classpath. Why?
----
Why is rather simple to answer...I don't know what I am doing other than
trying to follow Bob Stayton's book (4th Edition).

/var/www/html/docbook-xsl/extensions/saxon65.jar is from docbook-xsl
stylesheets that I downloaded from oasis

/var/www/saxon/saxon.jar is from saxon-6.5.5.zip that I downloaded per
instructions on page 19

In fact, my $CLASSPATH is starting to accumulate several duplicates of
xercesImpl.jar and saxon[***].jar and I'm beginning to get real
pessimistic that the consecutive install nature of each of these things
(saxon/xerces/xalan/fop) are not necessarily all supposed to be
installed and added to $CLASSPATH.
----
> >> >>   *-cp  saxon.jar;/var/www/html/saxon/xercesImpl.jar \
> >>     
> You have to decide relative paths every time or all paths absolute.
----
OK - makes sense...easy enough
----
> 
> # java \
> >> > >   -Djavax.xml.parsers.DocumentBuilderFactory=\
> >> > >      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \
> >> > >   -Djavax.xml.parsers.SAXParserFactory=\
> >> > >      org.apache.xerces.jaxp.SAXParserFactoryImpl \
> >> > >   *-cp  saxon.jar;/var/www/html/saxon/xercesImpl.jar \
> >> > >   -o myfile.html \
> >> > >   /var/www/html/books/content/books/xml/qm_manual/en/index.xml \
> >> > >   /var/www/html/docbook-xsl/html/docbook.xsl \
> >> > >   use.extensions=1  
> >   
> I miss the mentioned saxon class.
----
I'm not entirely following
----
> 
> Did you tried to use Xerces 2.9.0?
----
No - should I use that instead of 2.9.1 ?

# java \
>   -Djavax.xml.parsers.DocumentBuilderFactory=\
>      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \
>   -Djavax.xml.parsers.SAXParserFactory=\
>      org.apache.xerces.jaxp.SAXParserFactoryImpl \
>
*-cp  /var/www/html/saxon/saxon.jar;/var/www/html/saxon/xercesImpl.jar \
>   -o myfile.html \
>   /var/www/html/books/content/books/xml/qm_manual/en/index.xml \
>   /var/www/html/docbook-xsl/html/docbook.xsl \
>   use.extensions=1
Exception in thread "main" java.lang.NoSuchMethodError: main
Failed to load Main-Class manifest attribute from
/var/www/html/saxon/xercesImpl.jar

Craig



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