users@jaxb.java.net

Re: incompatible types... JAXB

From: <assisr_at_br.ibm.com>
Date: Thu, 9 Oct 2008 17:16:31 -0300

hey !

Problem is that this program might need to be executed for many customers.
I just cannot ask them all to upgrade to 1.6 :((((

Why JAXB-RI does not work with 1.5 ? See error :

.\portalv6\jaxb\PortalItem.java:66: incompatible types found :
javax.xml.bind.annotation.XmlAccessType required:
javax.xml.bind.annotation.AccessType @XmlAccessorType(XmlAccessType.FIELD)
                                                                       ^

TX a lot !

Rodrigo Oliveira Assis
IT Specialist
IBM Application Management Services
+55 21 2225-4839
assisr_at_br.ibm.com
Rio de Janeiro, Brazil




"Wolfgang Laun" <wolfgang.laun_at_gmail.com>
09/10/2008 15:27

To
assisr_at_br.ibm.com
cc

Subject
Re: incompatible types... JAXB






Why doesn't your friend upgrade? He can still run programs compiled with
1.5.
-W

On Thu, Oct 9, 2008 at 4:21 PM, <assisr_at_br.ibm.com> wrote:
>
> Hey Wolgang ! TX for your feedback !
>
> That error I was getting in the past was due to the fact that I got
another
> JAXB version installed ("Java Web Services Developer Pack").
> So error was gone when I uninstalled it. Now I am trying to compile my
> project with jre1.5.0_07 but getting that error ("Incompatible types")
>
> Problem is that I sent my program (compiled in jre1.6.0_07) to a friend
who
> uses jre1.5.0_07.
>
> When he tries to run program he gets :
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
> version number in .class file
>
> So I need that program to be run in every machine.
>
> How can I do it please ?
>
> TX DUDE
>
>
> Rodrigo Oliveira Assis
> IT Specialist
> IBM Application Management Services
> +55 21 2225-4839
> assisr_at_br.ibm.com
> Rio de Janeiro, Brazil
>
>
>
> "Wolfgang Laun" <wolfgang.laun_at_gmail.com>
>
> 08/10/2008 11:11
>
> To
> assisr_at_br.ibm.com
> cc
> Subject
> Re: incompatible types... JAXB
>
>
>
>
> Didn't you have a very similar problem two or three weeks ago?
> It was some confusion with the classes on your classpath then,
> and it's most likely the same, again.
> -W
>
>