compiler compliance level [message #256401] |
Wed, 14 May 2008 21:59  |
Eclipse User |
|
|
|
i've set CLASSPATH correctly, have jdk & jre 1.6 installed but the
dropdown list in Window> Preferences> Java> Compiler> Compliance &
Classfiles only offers 1.3 & 1.4, and so i can't use System.out.printf, of
which i've otherwise become quite fond. what must i do to scratch this
itch?!
|
|
|
|
Re: compiler compliance level [message #256426 is a reply to message #256401] |
Thu, 15 May 2008 09:47  |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Tristan R. wrote:
> i've set CLASSPATH correctly, have jdk & jre 1.6 installed but the
> dropdown list in Window> Preferences> Java> Compiler> Compliance &
> Classfiles only offers 1.3 & 1.4, and so i can't use System.out.printf,
> of which i've otherwise become quite fond. what must i do to scratch
> this itch?!
>
First of all, Eclipse does not use the system env variable CLASSPATH at
all. Each project in Eclipse can specify a JRE to use.
Second, just because you have JDK 1.6 installed does not mean Eclipse is
running on it or knows about it.
As Ed already said, see the Installed JREs portion of the Preferences to
see if 1.6 is listed, If not, add it.
And to make sure Eclipse runs under a specific JVM, see this wiki page:
http://wiki.eclipse.org/Eclipse.ini
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.07996 seconds