If you are using Eclipse or Rational Application Developer (RAD) and encounter the following error causing your build to break, here is a work around that will help you get past the problem:
Error: "Access Restriction: The type {class name} is not accessible due to restriction on required library: {library path}"
Work around: In Eclipse or RAD, go to Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (Access Rules) -> Change from "Error" to "Warning"
This will cause Eclipse/RAD to show a warning instead of an error, allowing you to build your project successfully. The reason that this error happens is likely due to a library class attempting to replace a standard class that comes with Java 5 or later. Due to licensing restrictions, replacing a standard class is not allowed but was not enforced until Java 5 or later. Additionally, instead of changing the reference rules, the offending class can be removed from a jar file if needed.




