Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JRE 6.0 but 5.0 compliance
JRE 6.0 but 5.0 compliance [message #216599] Tue, 19 June 2007 00:41 Go to next message
Ryan Fong is currently offline Ryan FongFriend
Messages: 9
Registered: July 2009
Junior Member
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.
Re: JRE 6.0 but 5.0 compliance [message #216623 is a reply to message #216599] Tue, 19 June 2007 01:10 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Ryan Fong a écrit :
> 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 put libraries from a 5.0 JDK on the classpath. You can still
run on top of a JDK 6.0.
--
Olivier
Re: JRE 6.0 but 5.0 compliance [message #216714 is a reply to message #216599] Tue, 19 June 2007 16:47 Go to previous message
Eclipse UserFriend
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
Previous Topic:building a huge repository on a RunBench
Next Topic:Eclipse plug-in
Goto Forum:
  


Current Time: Thu Apr 25 00:02:58 GMT 2024

Powered by FUDForum. Page generated in 0.08282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top