aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Access restriction: The type XSObject is not accessible due to restriction on required library. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Access restriction: The type XSObject is not accessible due to restriction on required library." Watch "Access restriction: The type XSObject is not accessible due to restriction on required library." New topic
Author

Access restriction: The type XSObject is not accessible due to restriction on required library.

Mani Raju
Ranch Hand

Joined: Oct 09, 2012
Posts: 46



In My project i have import statement, com.sun.org.apache.xerces.internal.xs.XSObject.

For the above statement, i am getting error :

Access restriction: The type XSObject is not accessible due to restriction on required library C:\Program Files\Java\jre7\lib\rt.jar.

Anyone could help me to sort out this issue.
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

I'm not sure it will help with your problem, but please have a look at the Similar Threads section at the bottom of this page. I think the first thread listed there might be useful to you.
Mani Raju
Ranch Hand

Joined: Oct 09, 2012
Posts: 46
Martin Vajsar wrote:I'm not sure it will help with your problem, but please have a look at the Similar Threads section at the bottom of this page. I think the first thread listed there might be useful to you.



Sorry, i could not able to find you mentioned link and i didn't get you.
Could you please mention completely again.

Thanks in advance.

Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

At the bottom of this page, you should see a small table titled Similar Threads. It contains links to threads that are similar to the first post and often concern similar or identical problems. In this case, there is a thread titled java-access restriction errors on sun.misc.Cleaner and sun.nio.ch.DirectBuffer (click here to open it).

If you don't see that table at the bottom of this very page, please let us know (preferably in the Ranch Office forum). It would be a bug we'd like to hear about.

Also, I'm not sure the thread I'm referring you to will help, if it doesn't, please feel free to ask again here.
Mani Raju
Ranch Hand

Joined: Oct 09, 2012
Posts: 46
Martin Vajsar wrote:At the bottom of this page, you should see a small table titled Similar Threads. It contains links to threads that are similar to the first post and often concern similar or identical problems. In this case, there is a thread titled java-access restriction errors on sun.misc.Cleaner and sun.nio.ch.DirectBuffer (click here to open it).

If you don't see that table at the bottom of this very page, please let us know (preferably in the Ranch Office forum). It would be a bug we'd like to hear about.

Also, I'm not sure the thread I'm referring you to will help, if it doesn't, please feel free to ask again here.



Thanks Martin, it resolved by adding that specific jar file in build path.

Thank you........
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

You're welcome!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access restriction: The type XSObject is not accessible due to restriction on required library.