wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Compiler Compliance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Compiler Compliance" Watch "Eclipse Compiler Compliance" New topic
Author

Eclipse Compiler Compliance

sakthi moorthy
Ranch Hand

Joined: Oct 17, 2007
Posts: 54
hi to all i am using eclipse 3.2 , i change jdk1.4 to jdk1.5 so in run.conf i made change to point the jdk1.5 directory my doubt is i already made this change so what is the purpose of change the compiler compliance level to 5.0 and what is the compiler compliance level?
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Originally posted by sakthi moorthy:
what is the compiler compliance level?


The compiler compliance level is nothing but the version you let the tool (eclipse here in your case) use when compiling the set of java files inside a project.

As such, you set to 5.0 so that it knows the features specific to 5.0 version and will obey accordingly


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Eclipse isn't using the compiler from the JDK, but it's own (to support some Eclipse-specific features). So you need to configure the Eclipse compiler in addition to point it to the correct JDK.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Paul O'Neill
Ranch Hand

Joined: Mar 13, 2007
Posts: 40
Why does the compiler compliance level change from 1.3, 1.4 format to 5.0, 6.0 etc.? Is 5.0 compatible with jdk1.5?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

Originally posted by Paul O'Neill:
Why does the compiler compliance level change from 1.3, 1.4 format to 5.0, 6.0 etc.? Is 5.0 compatible with jdk1.5?


JDK 1.5 is Java 5. Sun likes to do that. They pulled the same trick with Solaris.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Compiler Compliance
 
Similar Threads
Eclipse : Java Compliance Level 5.0
Project facet Java 6.0 is not supported by target runtime WebSphere Application Server v6.1.
Java 1.5 compile time error
Difference between 'Installed JREs' and 'Compiler Compliance Level' in Eclipse
java