I’m having this error while importing JAI(Java Advanced Imaging) library.
PlanarImage image = JAI.create("fileload", "image12.tiff");
It says the following error:
Access restriction: The type PlanarImage is not accessible due to restriction on required library C:\Program Files (x86)\Java\jre6\lib\ext\jai_core.jar
I do not understand the reason. My JRE version is 6.
Please help, thanks in advance.
The answer is given here.
In short it says you can ignore this type of error by changing the settings under
(Project) Properties -> Java Compiler -> Errors/Warnings
(Did you Google the error message? The above page was the first hit.)