|
|
Re: JRE 6.0 but 5.0 compliance [message #216714 is a reply to message #216599] |
Tue, 19 June 2007 16:47 |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
Ryan Fong wrote:
> G'day mates! I'm using Eclipse sdk 3.3rc4. I'd like our team to install
> JDK 6.0 but have the code comply to 5.0 for now. I set the workspace
> compiler compliance to 5.0 but it allowed me to use javax.swing.SwingWorker,
> which is new in JDK6.0. Is there a way to enforce the 5.0 API? Flagging
> this as a compile error would be great.
You need to specify that a Java 5 JDK/JRE be used, either at the
workspace level or on a per-project basis. Set up the Java 5 JRE under
Preferences > Java > Installed JREs, then you can select it in the
project properties (and check in the .classpath file to your source
control system).
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08282 seconds