- This topic has 3 replies, 2 voices, and was last updated 14 years, 10 months ago by
support-shalini.
-
AuthorPosts
-
roberttthomasMemberThere was a similar posting back in 2007 about this. Here is the error:
Access restriction: The type WindowsLookAndFeel is not accessible due to restriction on required library C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\lib\rt.jar
Here is my installation summary:
*** Date:
Thursday, September 2, 2010 4:19:17 PM PDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.5
Build id: 8.5-20100319*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 8.5
Build id: 8.5-20100319Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 8.5\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup
C:\Program Files\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
C:/Program Files/Genuitec/MyEclipse 8.5
-configuration
configuration
-data
C:\Documents and Settings\All Users\Documents\dev\MyEclipse 8.5
-launcher
C:\Program Files\Genuitec\MyEclipse 8.5\myeclipse.exe
-install
C:/Program Files/Genuitec/MyEclipse 8.5
-configuration
configuration
-vm
C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dllSeptember 3, 2010 at 12:35 am #311092
support-shaliniMemberroberttthomas,
Can you clarify when you are getting this error? There are a few workarounds posted on links given below.
Can you try them and let me know how that works for you?
1. http://stackoverflow.com/questions/860187/access-restriction-on-class-due-to-restriction-on-required-library-rt-jar
2. http://lkamal.blogspot.com/2008/09/eclipse-access-restriction-on-library.htmlSeptember 3, 2010 at 12:13 pm #311115
roberttthomasMemberEclipse generates an error for:
– import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
– if (<some class> instanceof WindowsLookAndFeel)The postings you suggested discuss techniques for “getting rid” of the error by changing settings to reduce it to a warning.
While I appreciate the advice, no one is able to explain just what the nature of the “restiction rules” are. The class in question resides in the core rt.jar. A brief Google search on “com.sun.java.swing.plaf.windows.WindowsLookAndFeel” didn’t point to anything discussing access rules. Is there some Sun documentation somewhere which discusses this?
September 6, 2010 at 4:09 am #311137
support-shaliniMemberroberttthomas,
Is there some Sun documentation somewhere which discusses this?
I could not find any documentation regarding this, but there are a few links that pointed out that the restriction was imposed to avoid access to internal SUN API directly without going to the appropriate higher level handlers. This was necessary because, it cannot be guaranteed that these classes will be available in later versions of the VM.
Please refer to the following links for further reference –
1. http://stackoverflow.com/questions/1517619/eclipse-3-5-1-compiler-error-the-type-outputformat-is-not-accessible-due-to-rest
2. http://ubuntuforums.org/showthread.php?t=569113
Let me know if that helps. -
AuthorPosts