You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Nathan Beyer <nd...@apache.org> on 2008/07/24 04:34:54 UTC

Build with Harmony (WAS: Xerces-J compilation error)

I'm attempting to run the build scripts with Harmony. What's the expected
building convention? What JDK is normally used, is the build.bat/sh script
used, or is Ant invoked directly? What version of Ant is known to work.

In looking at the build.bat script, it seems like it won't work for Sun's
JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib folder.

-Nathan

On Sun, Jul 20, 2008 at 9:24 PM, Nathan Beyer <nd...@apache.org> wrote:

> I haven't tried it myself. I'll try to give it a shot and see what happens.
>
> Thanks for the notice about the JAXP update. Will Xerces start compiling at
> a higher source or target level as well? Isn't the code still at 1.3
> source/target level? What about library level?
>
>
> On Sat, Jul 19, 2008 at 11:46 PM, Michael Glavassevich <
> mrglavas@ca.ibm.com> wrote:
>
>>  Hi Nathan,
>>
>> Out of curiousity does Xerces Ant build work with Harmony? I've never
>> downloaded a build before so haven't tried it myself.
>>
>> Also an FYI for the Harmony community ... Xerces-J 2.9.1 is the final
>> release that would be at the Java 5 level (JAXP 1.3). We recently updated to
>> the JAXP 1.4 APIs on the trunk. This is the JAXP level in Java 6.
>>
>> Thanks.
>>
>> Michael Glavassevich
>> XML Parser Development
>> IBM Toronto Lab
>> E-mail: mrglavas@ca.ibm.com
>> E-mail: mrglavas@apache.org
>>
>> nbeyer@gmail.com wrote on 07/20/2008 12:23:47 AM:
>>
>>
>> > Another option would be to remove the JRE class library and use a
>> > subset of the JARs from the latest Harmony build [1].
>> >
>> > [1] http://harmony.apache.org/
>>
>> <j-...@xerces.apache.org>
>>
>

Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Cool. Thanks for the update Nathan.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

nbeyer@gmail.com wrote on 09/02/2008 12:29:29 PM:

> FYI - The latest Harmony milestone 5.0M7 includes the compatibility
> classes necessary to keep stylebook running, however the 'suncompat'
> libraries need to be enabled manual. If enabled, the Xerces build
> should work without error, however, no javadoc is produced, as that
> tool hasn't been completed.
>
> http://harmony.apache.org/download.html#Stable
>
> -Nathan
>
> On Thu, Jul 24, 2008 at 10:36 PM, Michael Glavassevich
> <mr...@ca.ibm.com> wrote:
> > Hi Nathan,
> >
> > It's an old project called Stylebook [1]. Xerces and Xalan still use it
for
> > building documentation. As far as I know nobody maintains it anymore.
> > Looking at the repository history there have been no commits to it
since
> > 2005 and very few since 1999 so I'd say pretty unlikely that it's going
to
> > get updated.
> >
> > Thanks.
> >
> > [1] http://svn.apache.org/viewvc/xml/stylebook/
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
> >
> > nbeyer@gmail.com wrote on 07/24/2008 11:19:13 PM:
> >
> >> Harmony doesn't have javadoc implemented, so that obviously doesn't
> >> work, but I'm able to get the compiles to work. The output is
> >> different as the Harmony compiler is ECJ. The most obvious issue at
> >> the moment is big failure in generating the documentation ('build
> >> doc'). I'm not familiar with the classes mentioned in the stack
> >> trace, so I'm looking for some pointers to the projects they belong
> >> to. Here's a snippet of the log with the stack trace I'm seeing. It
> >> looks like the org.apache.stylebooks.printers.ImagePrinter is using
> >> the proprietary Sun APIs. This shoud really be replaced with Image
> >> I/O APIs, but I'm not sure what project this code belongs to. Also,
> >> if I can see the code, I can work on a compatibility shim for Harmony.
> >>
> >>
> >> [java] [Xalan2Processor] Applying XSL sheet "sbk:
> >> /style/stylesheets/any2project.xsl"
> >>      [java] [Project] Creating "faq-pcfp.html"
> >>      [java] [CachingParser] Serving cached document "sbk:
> >> /sources/faq-pcfp.xml" (1)
> >>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
> >> /style/stylesheets/faqs2document.xsl"
> >>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
> >> /style/stylesheets/document2html.xsl"
> >>      [java] [Project] Creating "graphics/ext-16-label-3.jpg"
> >>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
> >> /style/stylesheets/context2label.xsl"
> >>      [java] Uncaught exception in main:
> >>      [java] java.lang.NoClassDefFoundError:
> >> com/sun/image/codec/jpeg/JPEGCodec
> >>      [java]     at org.apache.stylebook.printers.ImagePrinter.
> >> print(Unknown Source)
> >>      [java]     at org.apache.stylebook.BasicEntry.create(Unknown
Source)
> >>      [java]     at org.apache.stylebook.Project.create(Unknown Source)
> >>      [java]     at org.apache.stylebook.StyleBook.main(Unknown Source)
> >>      [java] Caused by: java.lang.ClassNotFoundException: com.sun.
> >> image.codec.jpeg.JPEGCodec
> >>      [java]     at
> >> java.net.URLClassLoader.findClass(URLClassLoader.java:894)
> >>      [java]     at
java.lang.ClassLoader.loadClass(ClassLoader.java:593)
> >>      [java]     at java.lang.ClassLoader$SystemClassLoader.
> >> loadClass(ClassLoader.java:981)
> >>      [java]     at
java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> >>      [java]     at org.apache.stylebook.printers.ImagePrinter.
> >> print(Unknown Source)
> >>      [java]     ... 3 more
> >>
> >> -Nathan
> >
> >> On Thu, Jul 24, 2008 at 9:20 PM, Michael Glavassevich
<mrglavas@ca.ibm.com
> >> > wrote:
> >> Hi Nathan,
> >>
> >> nbeyer@gmail.com wrote on 07/24/2008 10:04:38 PM:
> >>
> >> > On Thu, Jul 24, 2008 at 8:52 PM, Michael Glavassevich
> >> > <mrglavas@ca.ibm.com
> >> > > wrote:
> >> > Hi Nathan,
> >> >
> >> > nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:
> >> >
> >> >
> >> > > I'm attempting to run the build scripts with Harmony. What's the
> >> > > expected building convention? What JDK is normally used, is the
> >> > > build.bat/sh script used, or is Ant invoked directly?
> >> >
> >> >
> >> > build.bat/sh is used when building the official releases. Ant gets
> >> > invoked directly for the Gump builds and when I'm working in Eclipse
> >> > I usually invoke it directly too.
> >> >
> >> >
> >> > > What version of Ant is known to work.
> >>
> >> > Should work with Ant 1.6.5 and above though might work with earlier
> >> > versions. I upgraded the copy in the repository from 1.6.5 to 1.7.
> >> l recently.
> >> >
> >> >
> >> > > In looking at the build.bat script, it seems like it won't work
for
> >> > > Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib
> >> > > folder.
> >>
> >> > I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no
> >> > longer exists in recent JDKs it will be ignored.
> >> >
> >> > I've tested it with Sun JDK 6 before. It should still work.
> >> >
> >> > A better question would be - what's the intent of the classpath
> >> > that's assembled in this script? Is it to just get the additional
> >> > libraries available for Ant? It's not for properly setting up the
> >> > build classpath, correct? That's taken care of in the custom
compiler
> >> > task.
> >
> >> It's just for setting up the invocation of Ant. It points to the
> >> copy of Ant included with Xerces. A user only needs to set JAVA_HOME
> >> in order to use the scripts.
> >>
> >> The classpath for compilation is defined in build.xml and also
> >> managed by the custom Javac task.
> >>
> >>
> >> > -Nathan
> >> >
> >> > > -Nathan
> >> >
> >> > Thanks.
> >> >
> >> > Michael Glavassevich
> >> > XML Parser Development
> >> > IBM Toronto Lab
> >> > E-mail: mrglavas@ca.ibm.com
> >> > E-mail: mrglavas@apache.org
> >>
> >> Michael Glavassevich
> >> XML Parser Development
> >> IBM Toronto Lab
> >> E-mail: mrglavas@ca.ibm.com
> >> E-mail: mrglavas@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-dev-help@xerces.apache.org

Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Nathan Beyer <nd...@apache.org>.
FYI - The latest Harmony milestone 5.0M7 includes the compatibility
classes necessary to keep stylebook running, however the 'suncompat'
libraries need to be enabled manual. If enabled, the Xerces build
should work without error, however, no javadoc is produced, as that
tool hasn't been completed.

http://harmony.apache.org/download.html#Stable

-Nathan

On Thu, Jul 24, 2008 at 10:36 PM, Michael Glavassevich
<mr...@ca.ibm.com> wrote:
> Hi Nathan,
>
> It's an old project called Stylebook [1]. Xerces and Xalan still use it for
> building documentation. As far as I know nobody maintains it anymore.
> Looking at the repository history there have been no commits to it since
> 2005 and very few since 1999 so I'd say pretty unlikely that it's going to
> get updated.
>
> Thanks.
>
> [1] http://svn.apache.org/viewvc/xml/stylebook/
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> nbeyer@gmail.com wrote on 07/24/2008 11:19:13 PM:
>
>> Harmony doesn't have javadoc implemented, so that obviously doesn't
>> work, but I'm able to get the compiles to work. The output is
>> different as the Harmony compiler is ECJ. The most obvious issue at
>> the moment is big failure in generating the documentation ('build
>> doc'). I'm not familiar with the classes mentioned in the stack
>> trace, so I'm looking for some pointers to the projects they belong
>> to. Here's a snippet of the log with the stack trace I'm seeing. It
>> looks like the org.apache.stylebooks.printers.ImagePrinter is using
>> the proprietary Sun APIs. This shoud really be replaced with Image
>> I/O APIs, but I'm not sure what project this code belongs to. Also,
>> if I can see the code, I can work on a compatibility shim for Harmony.
>>
>>
>> [java] [Xalan2Processor] Applying XSL sheet "sbk:
>> /style/stylesheets/any2project.xsl"
>>      [java] [Project] Creating "faq-pcfp.html"
>>      [java] [CachingParser] Serving cached document "sbk:
>> /sources/faq-pcfp.xml" (1)
>>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
>> /style/stylesheets/faqs2document.xsl"
>>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
>> /style/stylesheets/document2html.xsl"
>>      [java] [Project] Creating "graphics/ext-16-label-3.jpg"
>>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
>> /style/stylesheets/context2label.xsl"
>>      [java] Uncaught exception in main:
>>      [java] java.lang.NoClassDefFoundError:
>> com/sun/image/codec/jpeg/JPEGCodec
>>      [java]     at org.apache.stylebook.printers.ImagePrinter.
>> print(Unknown Source)
>>      [java]     at org.apache.stylebook.BasicEntry.create(Unknown Source)
>>      [java]     at org.apache.stylebook.Project.create(Unknown Source)
>>      [java]     at org.apache.stylebook.StyleBook.main(Unknown Source)
>>      [java] Caused by: java.lang.ClassNotFoundException: com.sun.
>> image.codec.jpeg.JPEGCodec
>>      [java]     at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:894)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:593)
>>      [java]     at java.lang.ClassLoader$SystemClassLoader.
>> loadClass(ClassLoader.java:981)
>>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
>>      [java]     at org.apache.stylebook.printers.ImagePrinter.
>> print(Unknown Source)
>>      [java]     ... 3 more
>>
>> -Nathan
>
>> On Thu, Jul 24, 2008 at 9:20 PM, Michael Glavassevich <mrglavas@ca.ibm.com
>> > wrote:
>> Hi Nathan,
>>
>> nbeyer@gmail.com wrote on 07/24/2008 10:04:38 PM:
>>
>> > On Thu, Jul 24, 2008 at 8:52 PM, Michael Glavassevich
>> > <mrglavas@ca.ibm.com
>> > > wrote:
>> > Hi Nathan,
>> >
>> > nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:
>> >
>> >
>> > > I'm attempting to run the build scripts with Harmony. What's the
>> > > expected building convention? What JDK is normally used, is the
>> > > build.bat/sh script used, or is Ant invoked directly?
>> >
>> >
>> > build.bat/sh is used when building the official releases. Ant gets
>> > invoked directly for the Gump builds and when I'm working in Eclipse
>> > I usually invoke it directly too.
>> >
>> >
>> > > What version of Ant is known to work.
>>
>> > Should work with Ant 1.6.5 and above though might work with earlier
>> > versions. I upgraded the copy in the repository from 1.6.5 to 1.7.
>> l recently.
>> >
>> >
>> > > In looking at the build.bat script, it seems like it won't work for
>> > > Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib
>> > > folder.
>>
>> > I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no
>> > longer exists in recent JDKs it will be ignored.
>> >
>> > I've tested it with Sun JDK 6 before. It should still work.
>> >
>> > A better question would be - what's the intent of the classpath
>> > that's assembled in this script? Is it to just get the additional
>> > libraries available for Ant? It's not for properly setting up the
>> > build classpath, correct? That's taken care of in the custom compiler
>> > task.
>
>> It's just for setting up the invocation of Ant. It points to the
>> copy of Ant included with Xerces. A user only needs to set JAVA_HOME
>> in order to use the scripts.
>>
>> The classpath for compilation is defined in build.xml and also
>> managed by the custom Javac task.
>>
>>
>> > -Nathan
>> >
>> > > -Nathan
>> >
>> > Thanks.
>> >
>> > Michael Glavassevich
>> > XML Parser Development
>> > IBM Toronto Lab
>> > E-mail: mrglavas@ca.ibm.com
>> > E-mail: mrglavas@apache.org
>>
>> Michael Glavassevich
>> XML Parser Development
>> IBM Toronto Lab
>> E-mail: mrglavas@ca.ibm.com
>> E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Nathan,

It's an old project called Stylebook [1]. Xerces and Xalan still use it for
building documentation. As far as I know nobody maintains it anymore.
Looking at the repository history there have been no commits to it since
2005 and very few since 1999 so I'd say pretty unlikely that it's going to
get updated.

Thanks.

[1] http://svn.apache.org/viewvc/xml/stylebook/

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

nbeyer@gmail.com wrote on 07/24/2008 11:19:13 PM:

> Harmony doesn't have javadoc implemented, so that obviously doesn't
> work, but I'm able to get the compiles to work. The output is
> different as the Harmony compiler is ECJ. The most obvious issue at
> the moment is big failure in generating the documentation ('build
> doc'). I'm not familiar with the classes mentioned in the stack
> trace, so I'm looking for some pointers to the projects they belong
> to. Here's a snippet of the log with the stack trace I'm seeing. It
> looks like the org.apache.stylebooks.printers.ImagePrinter is using
> the proprietary Sun APIs. This shoud really be replaced with Image
> I/O APIs, but I'm not sure what project this code belongs to. Also,
> if I can see the code, I can work on a compatibility shim for Harmony.
>
>
> [java] [Xalan2Processor] Applying XSL sheet "sbk:
> /style/stylesheets/any2project.xsl"
>      [java] [Project] Creating "faq-pcfp.html"
>      [java] [CachingParser] Serving cached document "sbk:
> /sources/faq-pcfp.xml" (1)
>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
> /style/stylesheets/faqs2document.xsl"
>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
> /style/stylesheets/document2html.xsl"
>      [java] [Project] Creating "graphics/ext-16-label-3.jpg"
>      [java] [Xalan2Processor] Applying XSL sheet "sbk:
> /style/stylesheets/context2label.xsl"
>      [java] Uncaught exception in main:
>      [java] java.lang.NoClassDefFoundError:
com/sun/image/codec/jpeg/JPEGCodec
>      [java]     at org.apache.stylebook.printers.ImagePrinter.
> print(Unknown Source)
>      [java]     at org.apache.stylebook.BasicEntry.create(Unknown Source)
>      [java]     at org.apache.stylebook.Project.create(Unknown Source)
>      [java]     at org.apache.stylebook.StyleBook.main(Unknown Source)
>      [java] Caused by: java.lang.ClassNotFoundException: com.sun.
> image.codec.jpeg.JPEGCodec
>      [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:894)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:593)
>      [java]     at java.lang.ClassLoader$SystemClassLoader.
> loadClass(ClassLoader.java:981)
>      [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
>      [java]     at org.apache.stylebook.printers.ImagePrinter.
> print(Unknown Source)
>      [java]     ... 3 more
>
> -Nathan

> On Thu, Jul 24, 2008 at 9:20 PM, Michael Glavassevich
<mrglavas@ca.ibm.com
> > wrote:
> Hi Nathan,
>
> nbeyer@gmail.com wrote on 07/24/2008 10:04:38 PM:
>
> > On Thu, Jul 24, 2008 at 8:52 PM, Michael Glavassevich
<mrglavas@ca.ibm.com
> > > wrote:
> > Hi Nathan,
> >
> > nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:
> >
> >
> > > I'm attempting to run the build scripts with Harmony. What's the
> > > expected building convention? What JDK is normally used, is the
> > > build.bat/sh script used, or is Ant invoked directly?
> >
> >
> > build.bat/sh is used when building the official releases. Ant gets
> > invoked directly for the Gump builds and when I'm working in Eclipse
> > I usually invoke it directly too.
> >
> >
> > > What version of Ant is known to work.
>
> > Should work with Ant 1.6.5 and above though might work with earlier
> > versions. I upgraded the copy in the repository from 1.6.5 to 1.7.
> l recently.
> >
> >
> > > In looking at the build.bat script, it seems like it won't work for
> > > Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib
folder.
>
> > I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no
> > longer exists in recent JDKs it will be ignored.
> >
> > I've tested it with Sun JDK 6 before. It should still work.
> >
> > A better question would be - what's the intent of the classpath
> > that's assembled in this script? Is it to just get the additional
> > libraries available for Ant? It's not for properly setting up the
> > build classpath, correct? That's taken care of in the custom compiler
task.

> It's just for setting up the invocation of Ant. It points to the
> copy of Ant included with Xerces. A user only needs to set JAVA_HOME
> in order to use the scripts.
>
> The classpath for compilation is defined in build.xml and also
> managed by the custom Javac task.
>
>
> > -Nathan
> >
> > > -Nathan
> >
> > Thanks.
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org

Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Nathan Beyer <nd...@apache.org>.
Harmony doesn't have javadoc implemented, so that obviously doesn't work,
but I'm able to get the compiles to work. The output is different as the
Harmony compiler is ECJ. The most obvious issue at the moment is big failure
in generating the documentation ('build doc'). I'm not familiar with the
classes mentioned in the stack trace, so I'm looking for some pointers to
the projects they belong to. Here's a snippet of the log with the stack
trace I'm seeing. It looks like the
org.apache.stylebooks.printers.ImagePrinter is using the proprietary Sun
APIs. This shoud really be replaced with Image I/O APIs, but I'm not sure
what project this code belongs to. Also, if I can see the code, I can work
on a compatibility shim for Harmony.


[java] [Xalan2Processor] Applying XSL sheet
"sbk:/style/stylesheets/any2project.xsl"
     [java] [Project] Creating "faq-pcfp.html"
     [java] [CachingParser] Serving cached document
"sbk:/sources/faq-pcfp.xml" (1)
     [java] [Xalan2Processor] Applying XSL sheet
"sbk:/style/stylesheets/faqs2document.xsl"
     [java] [Xalan2Processor] Applying XSL sheet
"sbk:/style/stylesheets/document2html.xsl"
     [java] [Project] Creating "graphics/ext-16-label-3.jpg"
     [java] [Xalan2Processor] Applying XSL sheet
"sbk:/style/stylesheets/context2label.xsl"
     [java] Uncaught exception in main:
     [java] java.lang.NoClassDefFoundError:
com/sun/image/codec/jpeg/JPEGCodec
     [java]     at org.apache.stylebook.printers.ImagePrinter.print(Unknown
Source)
     [java]     at org.apache.stylebook.BasicEntry.create(Unknown Source)
     [java]     at org.apache.stylebook.Project.create(Unknown Source)
     [java]     at org.apache.stylebook.StyleBook.main(Unknown Source)
     [java] Caused by: java.lang.ClassNotFoundException:
com.sun.image.codec.jpeg.JPEGCodec
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:894)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:593)
     [java]     at
java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:981)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
     [java]     at org.apache.stylebook.printers.ImagePrinter.print(Unknown
Source)
     [java]     ... 3 more

-Nathan

On Thu, Jul 24, 2008 at 9:20 PM, Michael Glavassevich <mr...@ca.ibm.com>
wrote:

> Hi Nathan,
>
> nbeyer@gmail.com wrote on 07/24/2008 10:04:38 PM:
>
> > On Thu, Jul 24, 2008 at 8:52 PM, Michael Glavassevich <
> mrglavas@ca.ibm.com
> > > wrote:
> > Hi Nathan,
> >
> > nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:
> >
> >
> > > I'm attempting to run the build scripts with Harmony. What's the
> > > expected building convention? What JDK is normally used, is the
> > > build.bat/sh script used, or is Ant invoked directly?
> >
> >
> > build.bat/sh is used when building the official releases. Ant gets
> > invoked directly for the Gump builds and when I'm working in Eclipse
> > I usually invoke it directly too.
> >
> >
> > > What version of Ant is known to work.
>
> > Should work with Ant 1.6.5 and above though might work with earlier
> > versions. I upgraded the copy in the repository from 1.6.5 to 1.7.l
> recently.
> >
> >
> > > In looking at the build.bat script, it seems like it won't work for
> > > Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib folder.
>
> > I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no
> > longer exists in recent JDKs it will be ignored.
> >
> > I've tested it with Sun JDK 6 before. It should still work.
> >
> > A better question would be - what's the intent of the classpath
> > that's assembled in this script? Is it to just get the additional
> > libraries available for Ant? It's not for properly setting up the
> > build classpath, correct? That's taken care of in the custom compiler
> task.
>
> It's just for setting up the invocation of Ant. It points to the copy of
> Ant included with Xerces. A user only needs to set JAVA_HOME in order to use
> the scripts.
>
> The classpath for compilation is defined in build.xml and also managed by
> the custom Javac task.
>
> > -Nathan
> >
> > > -Nathan
> >
> > Thanks.
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>

Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Nathan,

nbeyer@gmail.com wrote on 07/24/2008 10:04:38 PM:

> On Thu, Jul 24, 2008 at 8:52 PM, Michael Glavassevich
<mrglavas@ca.ibm.com
> > wrote:
> Hi Nathan,
>
> nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:
>
>
> > I'm attempting to run the build scripts with Harmony. What's the
> > expected building convention? What JDK is normally used, is the
> > build.bat/sh script used, or is Ant invoked directly?
>
>
> build.bat/sh is used when building the official releases. Ant gets
> invoked directly for the Gump builds and when I'm working in Eclipse
> I usually invoke it directly too.
>
>
> > What version of Ant is known to work.

> Should work with Ant 1.6.5 and above though might work with earlier
> versions. I upgraded the copy in the repository from 1.6.5 to 1.7.l
recently.
>
>
> > In looking at the build.bat script, it seems like it won't work for
> > Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib folder.

> I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no
> longer exists in recent JDKs it will be ignored.
>
> I've tested it with Sun JDK 6 before. It should still work.
>
> A better question would be - what's the intent of the classpath
> that's assembled in this script? Is it to just get the additional
> libraries available for Ant? It's not for properly setting up the
> build classpath, correct? That's taken care of in the custom compiler
task.

It's just for setting up the invocation of Ant. It points to the copy of
Ant included with Xerces. A user only needs to set JAVA_HOME in order to
use the scripts.

The classpath for compilation is defined in build.xml and also managed by
the custom Javac task.

> -Nathan
>
> > -Nathan
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Nathan Beyer <nd...@apache.org>.
On Thu, Jul 24, 2008 at 8:52 PM, Michael Glavassevich <mr...@ca.ibm.com>
wrote:

> Hi Nathan,
>
> nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:
>
> > I'm attempting to run the build scripts with Harmony. What's the
> > expected building convention? What JDK is normally used, is the
> > build.bat/sh script used, or is Ant invoked directly?
>
>
> build.bat/sh is used when building the official releases. Ant gets invoked
> directly for the Gump builds and when I'm working in Eclipse I usually
> invoke it directly too.
>
>
> > What version of Ant is known to work.
>
> Should work with Ant 1.6.5 and above though might work with earlier
> versions. I upgraded the copy in the repository from 1.6.5 to 1.7.l
> recently.
>
> > In looking at the build.bat script, it seems like it won't work for
> > Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib folder.
>
> I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no longer
> exists in recent JDKs it will be ignored.
>
> I've tested it with Sun JDK 6 before. It should still work.
>

A better question would be - what's the intent of the classpath that's
assembled in this script? Is it to just get the additional libraries
available for Ant? It's not for properly setting up the build classpath,
correct? That's taken care of in the custom compiler task.

-Nathan


>
>
> > -Nathan
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>

Re: Build with Harmony (WAS: Xerces-J compilation error)

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Nathan,

nbeyer@gmail.com wrote on 07/23/2008 10:34:54 PM:

> I'm attempting to run the build scripts with Harmony. What's the
> expected building convention? What JDK is normally used, is the
> build.bat/sh script used, or is Ant invoked directly?

build.bat/sh is used when building the official releases. Ant gets invoked
directly for the Gump builds and when I'm working in Eclipse I usually
invoke it directly too.

> What version of Ant is known to work.

Should work with Ant 1.6.5 and above though might work with earlier
versions. I upgraded the copy in the repository from 1.6.5 to 1.7.l
recently.

> In looking at the build.bat script, it seems like it won't work for
> Sun's JDK 6, as there isn't a 'classes.zip' in the JDK_HOME/lib folder.

I recall 'classes.zip' being in earlier JDKs. 1.2 perhaps. If it no longer
exists in recent JDKs it will be ignored.

I've tested it with Sun JDK 6 before. It should still work.

> -Nathan

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org