eclipse with openjdk7 ?
Thomas Gellekum
Thomas.Gellekum at gmx.de
Wed Aug 17 06:45:40 UTC 2011
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
More information about the freebsd-eclipse
mailing list