java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso

Ronald Klop ronald-freebsd8 at klop.yi.org
Wed Sep 1 20:07:11 UTC 2010


On Wed, 01 Sep 2010 20:54:00 +0200, Rob Farmer <rfarmer at predatorlabs.net>  
wrote:

> On Wed, Sep 1, 2010 at 6:32 AM, Ronald Klop  
> <ronald-freebsd8 at klop.yi.org> wrote:
>> On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer  
>> <rfarmer at predatorlabs.net>
>> wrote:
>>
>>> With java/jdk16:
>>>
>>> Animal.java:
>>>    import javax.xml.bind.annotation.XmlSeeAlso;
>>>
>>>    @XmlSeeAlso ({Dog.class,Cat.class})
>>>    class Animal {}
>>>    class Dog extends Animal {}
>>>    class Cat extends Animal {}
>>>
>>> javac Animal.java
>>>
>>>    Animal.java:1: cannot find symbol
>>>    symbol  : class XmlSeeAlso
>>>    location: package javax.xml.bind.annotation
>>>    import javax.xml.bind.annotation.XmlSeeAlso;
>>>                                ^
>>>    Animal.java:3: cannot find symbol
>>>    symbol: class XmlSeeAlso
>>>    @XmlSeeAlso ({Dog.class,Cat.class})
>>>     ^
>>>    2 errors
>>>
>>> This class seems to be missing, yet it is listed in the JDK 6 docs:
>>>
>>>
>>> http://download.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html
>>>
>>
>> There are differences in the API's between minor versions of java 6.
>> Especially the XML packages have bitten me more than once. That is why  
>> it is
>> nice, that java/openjdk6 is up to date.
>>
>> Ronald.
>>
>
> My understanding was that there are no minor versions of Java 6 -
> everything is 1.6.0 patchlevel XX and if the API changed then 1.6.1
> would be released (which hasn't happened). Or is this different
> because we are talking about a javax class rather java?
>
> In any case, I'm updating a port and it looks like this class is
> needed. Is setting JAVA_VENDOR= openjdk in the Makefile the best way
> to force use of openjdk?
>

I think JAVA_VENDOR=openjdk is what you need. Just try it.

Ronald.


More information about the freebsd-java mailing list