Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Compiler Compliance

 
sakthi moorthy
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul O'Neill
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic