DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page access restriction problems
Notices
Closed Thread
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2008
Default access restriction problems - 06-04-2008, 05:40 PM

Well i have a problem..
I'm using Eclipse 3.3.2
And i got a source code of a open code program..
But i have a access restriction problem trying to:
import sun.misc.Service;
OR
import sun.misc.BASE64Decoder;
OR
import sun.misc.BASE64Encoder;
The same problem over and over again
Code:
Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program 
files\java\jdk1.5.0_15\jre\lib\rt.jar
And i didn't manage to change the access rules becaouse they are non modifiable




How do i change them?
What can i do?

Thank You
  (#2 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default 11-30-2008, 05:10 AM

1. Open project properties.
2. Select Java Build Path node.
3. Select Libraries tab.
4. Remove JRE System Library.
5. Add Library JRE System Library.
  (#3 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Mar 2009
Default 03-25-2009, 12:17 PM

Hi, I'm experiencing the same problem and the workaround by tgigiel is not working for me. The projects are managed by maven2, and they don't build.
  (#4 (permalink)) Old
Moderator
 
jwenting's Avatar
 
Posts: 99
Thanks: 0
Thanked 8 Times in 8 Posts
Join Date: Feb 2008
Send a message via MSN to jwenting
Default 03-26-2009, 03:55 AM

you should never directly use those classes, period.
Any code that does should be immediately ditched for something better, these are classes designed for internal use inside the Sun JVM only, not for use by your own classes (or those by others that aren't part of the public API of the Java language).
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I access to www.eclipsezone.com? gamby Zones 10 02-02-2009 09:48 AM
Deploying using JWS with EMF problems jjabson Zones 0 12-19-2008 07:24 PM
Problems With Pdt Eclipse xakzona Eclipse 0 10-14-2008 05:26 AM
E-mail syntax restriction too strict Trinition Feedback 0 08-15-2008 11:05 AM
Access Denied PhiLho Feedback 1 02-18-2008 07:11 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com