Adding a Jar to ext and using it in Eclipse

Posted by Bob Breznak on Stack Overflow See other posts from Stack Overflow or by Bob Breznak
Published on 2010-05-17T11:05:02Z Indexed on 2010/05/17 11:11 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

I am providing a client with a lab station image for a school program. There is a library that I'd like to directly add to the JRE so that students can use the library without needing to fiddle with adding the classpath. As this is a basic after school program, the goal is to just get students into programming with as little overhead additions as possible.

At this point, I have the lib put into the jre/lib/ext and Eclipse is able to find it, however it will not allow access to any of the classes. I see it in the JRE System Library and the classes and packages are showing up there but when I go to use it, I am getting an "Access restriction" error. When I remove the JRE System Library then add it back in, everything works swimmingly. The library is accessible exactly as intended.

Any ideas on how to resolve this?

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse