From owner-freebsd-eclipse@FreeBSD.ORG Wed Aug 17 06:45:40 2011 Return-Path: Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F8B4106564A for ; Wed, 17 Aug 2011 06:45:40 +0000 (UTC) (envelope-from Thomas.Gellekum@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id DF0D78FC12 for ; Wed, 17 Aug 2011 06:45:39 +0000 (UTC) Received: (qmail invoked by alias); 17 Aug 2011 06:45:38 -0000 Received: from xdsl-78-34-107-202.netcologne.de (EHLO siegel.tg.intern) [78.34.107.202] by mail.gmx.net (mp056) with SMTP; 17 Aug 2011 08:45:38 +0200 X-Authenticated: #18235045 X-Provags-ID: V01U2FsdGVkX1+6RcQ1Gca6/fCm+p+MB8aUdItpPBYlVSvhuV5pAL 4vCHHUZn+RYlLN Message-ID: <4E4B6391.7010808@gmx.de> Date: Wed, 17 Aug 2011 08:45:37 +0200 From: Thomas Gellekum User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110701 Thunderbird/5.0 MIME-Version: 1.0 To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: freebsd-eclipse@freebsd.org Subject: Re: eclipse with openjdk7 ? X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 06:45:40 -0000 On 08/17/11 02:34, Любомир Григоров wrote: > I installed openjdk 7 and then tried to build eclipse, but it still > downloaded openjdk 6 for the install. Was this only needed for the > compilation and is later removed? I know openjdk 7 needed v6 to compile and > then removed it. > > Why does Eclipse still download it if v7 is installed? The Java version used by Eclipse is currently hardcoded because it doesn't compile with all the (older) JDK6's out there. I guess nobody has tried to use JDK7 to compile and run eclipse so far. You can easily try the "run" part: set JAVA_HOME in your environment to /usr/local/openjdk7 and start the /usr/local/bin/eclipse (or eclipse-devel) script. As to "compile": set JAVA_VERSION to 1.6+ in eclipse-devel/Makefile (I don't think this will work with the main eclipse port, as it is still at 3.6.2) and rebuild. If OpenJDK7 is your default Java version, it should be picked up automatically. Note that you can always specify a JRE for your own projects in the Java preferences. JDT support for JDK7 features will arrive with 3.7.1 (due end of September, I think). tg