[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Compiling for older version of java

Olivier Thomann wrote:


If you take the default settings corresponding to compliance 1.5, then the source and target settings should indeed be set to 1.5.
But the compiler doesn't check that you are using functionnality only from 1.5. You need to set the libraries on your project to be 1.5.

Correct, I am using the default settings which do show "5" for both "Generated .class files compatibility" as well "Source compatibility".


Under Project->Java Build Path->Libraries tab, my "Execution Environment" is set to J2SE-1.5(jre1.6.0_02). Is this what you mean?

You cal always open a bug report against JDT/Core and explain what are your settings.

I can't imagine I am the only one who is trying to do this. I must be missing something. Are there any other settings to ensure it will run on 1.5?


Thanks,

--Joel