facebook

Access Restriction Importing….

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #311088 Reply

    There 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 Workbench

    Version: 8.5
    Build id: 8.5-20100319

    Eclipse 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.dll

    #311092

    roberttthomas,
    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.html

    #311115

    Eclipse 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?

    #311137

    roberttthomas,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Access Restriction Importing….

You must be logged in to post in the forum log in