This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Compiler Compliance Level vs Build JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Compiler Compliance Level vs Build JRE" Watch "Compiler Compliance Level vs Build JRE" New topic
Author

Compiler Compliance Level vs Build JRE

Harry Jonathan
Greenhorn

Joined: Aug 17, 2011
Posts: 2
I am working on a eclipse project for which default build project library is 1.5 but compliance level is 1.4.

From above configuration what I understood is that the project will be build with 1.4 compatibility and build the same way as that of JDK 1.4 library.

In my program I am using java.util.concurrent.CopyOnWriteArraySet which was introduced in jdk 1.5. When I compile my code with above setting it gets compiled properly.
But when I point my default workspace library to 1.4 with compliance level as 1.4 it shows error for the same.

What is the difference between setting the build library JRE and compiler compliance

Please reply ...
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5575

Harry, welcome to Java Ranch!

I just knew that I recalled seeing this discussed earlier, and sure enough searching for "compiler compliance level" in this forum yielded this:
http://www.coderanch.com/t/531065/vc/Difference-between-Installed-JREs-Compiler


JBoss In Action
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Compiler Compliance Level vs Build JRE
 
Similar Threads
Difference between 'Installed JREs' and 'Compiler Compliance Level' in Eclipse
WSAD 5.1.2 and J2SE 1.5 Compiler
Absent Line Number Information - I'm NOT using Ant
Eclipse Compiler Compliance
Java or Netbeans error?