Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linuxtools-dev] Use of Java 6 classes break compile

Yeah, I'm pretty sure it doesn't know what was added when and your Java 7 JDK is masquerading as JDK 5 here.  To take full advantage of API tools one really needs actual copies of older JDKs AFAIK.

Andrew

On 15 Jan 2013 15:22, "Marc Khouzam" <marc.khouzam@xxxxxxxxxxxx> wrote:

> -----Original Message-----
> From: linuxtools-dev-bounces@xxxxxxxxxxx
> [mailto:linuxtools-dev-bounces@xxxxxxxxxxx] On Behalf Of sami
> wagiaalla
> Sent: Tuesday, January 15, 2013 2:48 PM
> To: Linux Tools developer discussions
> Subject: Re: [linuxtools-dev] Use of Java 6 classes break compile
>
> > Furthermore, the JDT preference set in the plugin's
> >      .settings/org.eclipse.jdt.core.prefs
> > file is:
> >      org.eclipse.jdt.core.compiler.source=1.5
> > which explains why my system uses Java 5 to compile that plugin
> > although I have Java 6 installed.
> >
>
> How come my eclipse does not report these errors. What
> settings should I use to make sure I see errors like these.

I'm not sure.  Maybe it is because you don't have a JRE for Java 5
installed for Eclipse, so it defaults to what you have installed?
In my case I have both Java 5 and 6, so it picked the one
the preference settings file told it too.

That's my guess anyway.

Marc

_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

Back to the top