Results 1 to 8 of 8
  1. #1
    kiranblighty is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default Access restriction: Class is not accessible due to restriction on required

    Hi
    I have to use jmf in my java project.I have installed jmf and added jmf.jar to the project.But my program does not recognise jmf classes.

    I have no problem when i run the program in command prompt.But problem arises when i go for IDE(Eclipse).

    Please help me.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    How did you add jmf.jar to the project?

  3. #3
    kiranblighty is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default

    Right click project-properties-java build path-add external jars

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    And what's the exact error message that you get?

  5. #5
    kiranblighty is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default

    Access restriction: The type FrameGrabbingControl is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\jmf.jar

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Why are you adding it to the jre ext directory?
    It looks like you have some kind of security issues accessing the file.
    Try putting it into a folder you have full access to and make sure the file itself does not have strange properties that stops you from reading it.

  7. #7
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Here is some sort of temporary fix. Not sure how good an idea it is though ...

    [Eclipse] Access restriction: Class is not accessible due to restriction on required library - DigiZol

  8. #8
    kiranblighty is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default

    hi ro35198x

    thanks for your response. i have gone through that above url.It has got temporary solution and also getting error for using the class CaptureDeviceDialog "CaptureDeviceDialog cannot be resolved to a type".

    and Above all we have got jmf.jar in Java System Library by default. So we should not get the problem of jmf.jar missing

Similar Threads

  1. Access restriction error in eclipse
    By Steffan in forum New To Java
    Replies: 0
    Last Post: 02-03-2010, 04:03 PM
  2. Error: Access restriction
    By livnihai in forum Eclipse
    Replies: 1
    Last Post: 11-25-2009, 06:53 PM
  3. Replies: 1
    Last Post: 06-08-2009, 07:27 AM
  4. Replies: 13
    Last Post: 08-23-2008, 09:09 PM
  5. Can we lift the images restriction?
    By Cyorxamp in forum Suggestions & Feedback
    Replies: 30
    Last Post: 07-01-2008, 08:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •