How to make Eclipse compile with Java 1.5 in Mac OS X Leopard (10.5)?

Posted by whiskeyspider on Stack Overflow See other posts from Stack Overflow or by whiskeyspider
Published on 2010-04-20T17:18:42Z Indexed on 2010/04/20 19:13 UTC
Read the original article Hit count: 111

Filed under:
|
|

I have been developing in Snow Leopard (10.6). I believe I have some Java6-only API features and I'd like to find these. I moved my project to Leopard (10.5) -- since Snow Leopard does not support Java 1.5 -- but I am so far unable to make Eclipse give compile errors for a Java API call which I know to have been added in 1.6.

Here is what I have done: Project properties -> Java Compiler -> set everything to 1.5. Preferences -> Java -> Installed JREs -> selected JVM 1.5.0. Project properties -> Java Build Path -> Libraries -> says JRE System Library [JVM 1.5.0]

What am I missing? Is there another way to find Java API calls added in 1.6 when using Eclipse in Snow Leopard?

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse