[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Different JREs for different Java projects

This would compile against the correct library, but would be using the wrong
compiler.  Unless Eclipse is using an internal compiler regardless.  I don't
consider myself even close to an expert on java compilation, so I don't even
know if this would matter.

Out of curiosity, (because I'm not actually using it), how would that affect
something like the 'assert' keyword?  I'm guessing if I set the default JDK
to 1.3, it should throw an error (unfortunately) in my 1.4 code.  If I set
the default to JDK 1.4, use of assert in my 1.3 code wouldn't throw a
warning.

I tried what you suggested and it worked, as I assumed it would before
trying.  This should work out well for me because I build for deployment
outside of Eclipse using Ant so any weird compiler issues would be detected
then anyway.

Thanks for the help and getting back to me much more quickly than I got back
to you. :)

"Darin Swanson" <darins@xxxxxxxxxx> wrote in message
news:b1p3dc$3cd$1@xxxxxxxxxxxxxxxx
> Use the context menu for the project to bring up the project properties
> On the Libraries path, remove the existing JRE lib
> Click Add Library
> Select JRE system Library
> Select (and / or ) add as required
>
> HTH
> Darins
>
> "Daniel E. Stolz" <dan.stolz@xxxxxxxxxxxxxxxx> wrote in message
> news:b1p2ed$2go$1@xxxxxxxxxxxxxxxx
> > I would like to use different JREs for different Java projects that I
> have.
> >
> > In particular, I have two versions of a project, on that compiles with
JDK
> > 1.3 and one that compiles with JDK 1.4.
> >
> > I know that I can specify a particular JRE for launching each project.
I
> > also know how to specify the default JRE that gets used when compiling.
> > (Windows|Preferences).
> >
> > However, neither of these allows me to specify a specific java compiler
> > version for each project.
> >
> >
>
>