Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » using different version of java in Eclipse
using different version of java in Eclipse [message #214373] Thu, 07 June 2007 14:42 Go to next message
Wm.A.Stafford is currently offline Wm.A.StaffordFriend
Messages: 21
Registered: July 2009
Junior Member
I am supporting an old java application that needs to be maintained with
Java1.4. For new development I want to start using Java6. Is it possible
to set the Java version on a per project basis in Eclipse?

Thanks,
-=bill
Re: using different version of java in Eclipse [message #214381 is a reply to message #214373] Thu, 07 June 2007 14:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Bill,

Yes. Have a look at the properties view you get when you get from the
popup menu for a project. If you are developing plugins, you should set
this in the MANIFEST.MF.


Wm.Stafford wrote:
> I am supporting an old java application that needs to be maintained
> with Java1.4. For new development I want to start using Java6. Is it
> possible to set the Java version on a per project basis in Eclipse?
>
> Thanks,
> -=bill
>
Re: using different version of java in Eclipse [message #214389 is a reply to message #214381] Thu, 07 June 2007 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: beeky.bellatlantic.net

Wow! Thanks for the almost instantaneous reply. Unfortunatly I don't
quite understand what you are advising me to do. On the project
properties page the "java build path"->libraries tab would allow setting a
jre per project so that is half of the battle. How do I set the Java
compiler version per project? Or putting this another way, how do I tell
Eclipse to use Java6 to compile this project?

Thanks again for the quick response,
-=bill
Re: using different version of java in Eclipse [message #214396 is a reply to message #214389] Thu, 07 June 2007 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Bill,

If you look at the Java Compiler settings you'll see you can "Enable
project specific settings" and then set the "Compiler compliance level"
to 6.0. I think you can control the JRE that the compiler will use to
compile against from the "Build Path" settings.


W wrote:
> Wow! Thanks for the almost instantaneous reply. Unfortunatly I don't
> quite understand what you are advising me to do. On the project
> properties page the "java build path"->libraries tab would allow
> setting a jre per project so that is half of the battle. How do I set
> the Java compiler version per project? Or putting this another way,
> how do I tell Eclipse to use Java6 to compile this project?
>
> Thanks again for the quick response,
> -=bill
>
Re: using different version of java in Eclipse [message #214439 is a reply to message #214396] Thu, 07 June 2007 17:05 Go to previous message
Wm.A.Stafford is currently offline Wm.A.StaffordFriend
Messages: 21
Registered: July 2009
Junior Member
Ed,

Thanks for taking the time to answer my question twice. I can see now
that it is dead simple to do what I wanted. I guess that is why they call
it a learning curve, you think you are dead in the water but the solution
turns out to be simple.

Thanks again,
-=bill
Previous Topic:Hot Swap fails
Next Topic:Eclipse crashes frequently on Vista
Goto Forum:
  


Current Time: Thu Apr 25 22:41:48 GMT 2024

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

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

Back to the top