Skip to main content

JAI Access Restriction jai_core.jar

2 replies [Last post]
jjt
Offline
Joined: 2009-09-01
Points: 0

I am using WIN- OS. I installed JAI-API from SUN Systems and using JDK 1.6 and above.
I have tried to run the histogram files from the link below
https://jaistuff.dev.java.net/display.html ( downloaded both the files)

Well, i have used JCreator to compile and execute the files.
Below are the errors:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at DisplayHistogramApp.main(DisplayHistogramApp.java:57)
Then
I have tried with Eclipse (new version)
Below are the errors:
Access restriction: The type Histogram is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\jai_core.jar
Access restriction: The method getProperty(String) from the type PlanarImage is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\jai_core.jar

Kindly guide me on these Errors, Is there any problem with my installation?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmiecznik
Offline
Joined: 2007-11-07
Points: 0

Hi,

I have the same problem with Windows XP. Just downloaded latest Java an JAI JDKs an I cannot access jai_core.jar (from Eclipse) - same error meesage as yours.

Have you found answer to your problem?
Can anyone help?

Thank you
Gregory

jjt
Offline
Joined: 2009-09-01
Points: 0

I am a new user to JAI- API

I have tried again with the other examples, i am facing the same errors that i posted earlier in the tread

Need your guidance

~~~~~~~~~~~
Previous Post
~~~~~~~~~~~
I am using WIN- OS. I installed JAI-API from SUN Systems and using JDK 1.6 and above.
I have tried to run the histogram files from the link below
https://jaistuff.dev.java.net/display.html ( downloaded both the files)

Well, i have used JCreator to compile and execute the files.
Below are the errors:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at DisplayHistogramApp.main(DisplayHistogramApp.java:57)
Then
I have tried with Eclipse (new version)
Below are the errors:
Access restriction: The type Histogram is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\jai_core.jar
Access restriction: The method getProperty(String) from the type PlanarImage is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\jai_core.jar

Kindly guide me on these Errors, Is there any problem with my installation?