• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse Compiler Compliance

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic