I had the same experience with j2sdk1.4.2_06

later,

Jeff


-----Original Message-----
From: maarten [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 10, 2005 5:06 AM
To: [email protected]
Subject: Re: xmlbeans ant task


maarten wrote:

> Hi,
>
> Using xmlbeans-1.0.4  I can compile and use my schema with jdk1.5.0_03 
> but when I try compiling with j2sdk1.4.2_08
> I get the following error:
> java.lang.UnsupportedClassVersionError: 
> org/apache/xmlbeans/xml/stream/XMLInputStream (Unsupported major.minor 
> version 49.0)
>
> Using xmlbeans-2.0.0 I can compile with both jdk1.5.0_03 and 
> j2sdk1.4.2_08
> BUT i had to add jsr173_api.jar to the classpath of both the taskdef 
> and the xmlbean task:
>
> I guess the examples on 
> http://xmlbeans.apache.org/docs/2.0.0/guide/antXmlbean.html are 
> incomplete ?
>
> This is my build.xml :
>
> <project name="vapschema" basedir="." default="vapschema">
>  <target name="init">
>    <mkdir  dir="gen/xbeans"/>
>    <mkdir  dir="build/xbeans/classes"/>
>    <tstamp/>
>  </target>
>  <target name="vapschema" depends="init"  description="Compiles 
> vap.xsd with xmlbeans">
>    <taskdef name="xmlbean" 
> classname="org.apache.xmlbeans.impl.tool.XMLBean"
>      classpath="./jars/xbean-2.0.0.jar:./jars/jsr173_api.jar"/>
>    <xmlbean
>      schema="./src/be/sunrise/vap/vap.xsd"
>      classgendir="build/xbeans/classes"
>      srcgendir="gen/xbeans"
>      destfile="build/vap-schema.jar"
>      classpath="./jars/xbean-2.0.0.jar:./jars/jsr173_api.jar"/>
>  </target>
> </project>
>
> Maarten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
Is nobody else using the ant task ?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



*************************************************************************
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

Attachment: Oakes, Jeff (HTSC, IT).vcf
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to