From owner-freebsd-java@FreeBSD.ORG Wed Sep 1 20:07:11 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A740410656A7 for ; Wed, 1 Sep 2010 20:07:11 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id 65C068FC0A for ; Wed, 1 Sep 2010 20:07:11 +0000 (UTC) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out3.tiscali.nl with esmtp (Exim) (envelope-from ) id 1OqtaQ-0006Jx-AK; Wed, 01 Sep 2010 22:07:10 +0200 Received: from 212-123-145-58.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 6D41D18E8C; Wed, 1 Sep 2010 22:07:07 +0200 (CEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Rob Farmer" References: Date: Wed, 01 Sep 2010 22:07:06 +0200 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/10.61 (FreeBSD) Content-Transfer-Encoding: quoted-printable Cc: freebsd-java@freebsd.org Subject: Re: java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 20:07:11 -0000 On Wed, 01 Sep 2010 20:54:00 +0200, Rob Farmer = =20 wrote: > On Wed, Sep 1, 2010 at 6:32 AM, Ronald Klop =20 > wrote: >> On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer =20 >> >> 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/annotatio= n/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= =20 >> 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=3D openjdk in the Makefile the best way > to force use of openjdk? > I think JAVA_VENDOR=3Dopenjdk is what you need. Just try it. Ronald.