Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Eclipse Compiler Compliance

 
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?
 
Ranch Hand
Posts: 3389
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
 
author
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.
 
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?
 
Saloon Keeper
Posts: 21229
137
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
I do some of my very best work in water. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!