i am using Eclipse 3.4.0. I fixed this by right clicking on the PLR project > Java Compiler > Errors/Warnings. I changed "Forbidden Reference (access rules) to warning".
i tried to do from the libraries tab. but i had to make some werid pattern access rule thing. -Tony On Feb 12, 2008, at 9:33 AM, Scott Cytacki wrote: > > It sounds like your JRE System Library got changed for the PLR > project. > If this library is set to one of the Execution Environments, then > eclipse restricts which classes are available to your code. This is a > good thing, because it prevents you from accidentally using some class > that is not part of the official JRE api. And that sounds exactly > like what is being done by the OSXAdapter class. > > You can go in and override the restrictions so the PLR can access the > Application constructor. That is done by editing the "access rules" > under the JRE System Library entry in the Libraries tab of the Java > Build Path. > > Before doing this you probably what to see if your .project and > .classpath files are insync with SVN. > We will all probably need this access rule modification, so it would > be > good if you would check that in to SVN. > > What version of java are you running eclipse on? And what version > of > eclipse are you using? > > Scott > > Anthony Perritano wrote: >> i open up my eclipse today and in my PLR project i get a build error: >> >> Access restriction: The constructor Application() is not accessible >> due to restriction on required library /System/Library/Frameworks/ >> JavaVM.framework/Versions/1.5.0/Classes/ui.jar Pas Learner Runtime/ >> src/ >> main/java/org/telscenter/pas/util OSXAdapter.java line 119 >> >> i have about 22 of these. >> >> the only thing i could think of is that i was deleting logs and trace >> files from >> >> /Users/aperritano/Library/Caches/Java/cache >> >> last night. >> >> could this have done this? >> >> has any one seen this before? >> >> -Tony >> >> >> >> >>> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SAIL-Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SAIL-Dev?hl=en -~----------~----~----~----~------~----~------~--~---
