List Info

Thread: saxon65/nbproject/build-impl.xml:76: Platform is not correctly set




saxon65/nbproject/build-impl.xml:76: Platform is not correctly set
user name
2007-02-24 16:44:50
Hello,

  I am trying to build docbook on a linux/debian testing
plateform and
I am getting:

$ cd $DOCBOOK_SVN/xsl
$ make all
...
BUILD FAILED
/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/xsl/ext
ensions/saxon65/nbproject/build-impl.xml:76:
Platform is not correctly set up

See (*) for complete log.
Here is my .xmlc:

<?xml version='1.0' encoding='utf-8'?> <!-- -*-
nxml -*- -->
<config>
  <java classpath-separator=":"
xml:id="java">
    <system-property
name="javax.xml.parsers.DocumentBuilderFactory"
     
value="org.apache.xerces.jaxp.DocumentBuilderFactoryImp
l"/>
    <system-property
name="javax.xml.parsers.SAXParserFactory"
     
value="org.apache.xerces.jaxp.SAXParserFactoryImpl"
;/>
    <classpath
path="/usr/share/java/xercesImpl.jar"/>
    <classpath
path="/usr/share/java/jaxp-1.2.jar"/>
    <classpath
path="/usr/share/java/xml-apis.jar"/>
    <classpath
path="/usr/share/java/xml-commons-resolver-1.1.jar"
;/>
  </java>

  <java xml:id="bigmem">
    <java-option name="Xmx512m"/>
  </java>

  <saxon xml:id="saxon"
extends="java">
    <arg name="x"
value="org.apache.xml.resolver.tools.ResolvingXMLReader
"/>
    <arg name="y"
value="org.apache.xml.resolver.tools.ResolvingXMLReader
"/>
    <arg name="r"
value="org.apache.xml.resolver.tools.CatalogResolver&qu
ot;/>
    <param name="use.extensions"
value="1"/>
  </saxon>

  <saxon xml:id="saxon-6"
extends="saxon"
class="com.icl.saxon.StyleSheet">
    <classpath
path="/usr/share/java/saxon.jar"/>
    <classpath
path="/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docb
ook/xsl/extensions/saxon65.jar"/>
  </saxon>
</config>

$ echo $DOCBOOK_SVN
/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/

and looking into /usr/share/java I have:
(ref: http://
wiki.docbook.org/topic/DocBookXslBuild)

$ ls xercesImpl.jar xml-commons-resolver-1.1.jar
jaxp-1.2.jar
saxon.jar saxon65.jar ant.jar ant-launcher.jar xalan25.jar
xalan-j2.jar xml-commons-apis.jar
/bin/ls: saxon65.jar: No such file or directory
/bin/ls: xalan25.jar: No such file or directory
/bin/ls: xalan-j2.jar: No such file or directory
/bin/ls: xml-commons-apis.jar: No such file or directory
ant.jar  ant-launcher.jar  jaxp-1.2.jar  saxon.jar 
xercesImpl.jar
xml-commons-resolver-1.1.jar

Do I really need those jar files ? If so please let me know
where to
find them, as I could not find them in any debian package.
Knowing that I have:
$ dpkg -L libxalan2-java
...
/usr/share/java/xalan2.jar
/usr/share/java/serializer.jar
/usr/share/java/xml-apis.jar



Thanks for suggestion,
Mathieu

(*)
$ make all
make -C ../litprog
make[1]: Entering directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/litpro
g'
make -C html
make[2]: Entering directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/litpro
g/html'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/litpro
g/html'
make -C example
make[2]: Entering directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/litpro
g/example'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/litpro
g/example'
make[1]: Leaving directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/litpro
g'
for i in extensions common lib html fo manpages htmlhelp
javahelp
roundtrip slides website __bogus__; do 
                if [ $i != __bogus__ ] ; then 
                        echo "make -C $i"; make -C
$i; 
                fi 
        done
make -C extensions
make[1]: Entering directory
`/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/xsl/ex
tensions'
cd saxon65 && ant jar
Buildfile: build.xml

-pre-init:

-init-private:

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

BUILD FAILED
/home/mathieu/Projects/GDCM/gdcm/Sandbox/ooo/docbook/xsl/ext
ensions/saxon65/nbproject/build-impl.xml:76:
Platform is not correctly set up

Total time: 0 seconds


-- 
Mathieu

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: saxon65/nbproject/build-impl.xml:76: Platform is not correctly
user name
2007-02-24 21:38:15
Mathieu Malaterre <mathieu.malaterregmail.com>, 2007-02-24 17:44 -0500:

> and looking into /usr/share/java I have:
> (ref: http://
wiki.docbook.org/topic/DocBookXslBuild)
> 
> $ ls xercesImpl.jar xml-commons-resolver-1.1.jar
jaxp-1.2.jar
> saxon.jar saxon65.jar ant.jar ant-launcher.jar
xalan25.jar
> xalan-j2.jar xml-commons-apis.jar
> /bin/ls: saxon65.jar: No such file or directory
> /bin/ls: xalan25.jar: No such file or directory
> /bin/ls: xalan-j2.jar: No such file or directory
> /bin/ls: xml-commons-apis.jar: No such file or
directory
> ant.jar  ant-launcher.jar  jaxp-1.2.jar  saxon.jar 
xercesImpl.jar
> xml-commons-resolver-1.1.jar
> 
> Do I really need those jar files ?

You need to install at least these Debian packages:

  libxalan2-java
  libsaxon-java
  libxml-commons-resolver1.1-java
  libxerces-java
  ant

I'm not sure you still need to install jaxp, but you do need
to
add all of the jars from those packages to your java
classpath,
including the xml-apis and xercesimpl jars

On my Debian machine, I have the following in my .bashrc:

# directory containing all your jar files
export JARDIR=/usr/share/java

export
CLASSPATH=$CLASSPATH:$JARDIR/xml-commons-resolver-1.1.jar
export CLASSPATH=$CLASSPATH:$JARDIR/xercesimpl.jar
export CLASSPATH=$CLASSPATH:$JARDIR/xml-apis.jar
export CLASSPATH=$CLASSPATH:$JARDIR/xalan2.jar
export CLASSPATH=$CLASSPATH:$JARDIR/saxon.jar

As far as the saxon65.jar and xalan25.jar files, those are
probably filenames of jars that contain sets of DocBook XSLT
Java
extensions. They are not build dependencies -- they're built
by
the docbook-xsl build process. But note that the current
build
does not make a file called xalan25.jar. Instead it builds
files
called xalan2.jar and xalan27.jar. We probably don't really
need
to have the build making both of those and will likely
change the
build setup soon so that only one is built. I guess it will
probably just be called xalan.jar.

Those files are built in your docbook-xsl working
directory,
whatever local path on your system maps to the following SVN
URL:

  https://docbook.svn.sourceforge.net/svnr
oot/docbook/trunk/xsl/extensions

Anyway, if you are trying to get a working docbook-xsl
build
environment set up, you are likely to run into some other
errors.
The best way to get help with them is probably to get on
the
#docbook channel on irc.freenode.net and look for me (my
handle
there is #xmldoc) or Norm Walsh (ndw) or Camille Bgnis
(camil)
and tell what error messages you're getting, and one of us
can
walk you through fixing them (if we have time...)

  --Mike

-- 
Michael(tm) Smith
http://people.w3.org/mike/


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )