Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with jre
Problem with jre [message #770828] Sun, 25 December 2011 08:35 Go to next message
biatrice nounou is currently offline biatrice nounou
Messages: 1
Registered: December 2011
Junior Member
Hi Smile ,
I want to do:
import sun.reflect.generics.reflectiveObjects.NotImplementedException;

but eclipse raises a problem:
Quote:
Access restriction: The type NotImplementedException is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar

Can you help me to fix it Crying or Very Sad ?
Best regards,
Re: Problem with jre [message #773483 is a reply to message #770828] Sun, 01 January 2012 14:12 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2131
Registered: July 2009
Senior Member
On 12/25/2011 8:35 AM, nounou wrote:
> Hi :) ,
> I want to do:
> import sun.reflect.generics.reflectiveObjects.NotImplementedException;
>
> but eclipse raises a problem:
> Quote:
>> Access restriction: The type NotImplementedException is not accessible
>> due to restriction on required library C:\Program
>> Files\Java\jre6\lib\rt.jar
>
> Can you help me to fix it :cry: ?
> Best regards,

Anything in sun.* wouldn't be available to you in a non-Sun/Oracle JRE.
If you care about portability, don't use it. You can always create
your own Exception type instead.

---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Can't I install Koneki Plugin (Lua).
Next Topic:Find references in Eclipse
Goto Forum:
  


Current Time: Wed Apr 16 21:08:15 EDT 2014

Powered by FUDForum. Page generated in 0.01644 seconds