Results 1 to 8 of 8
- 02-19-2010, 08:57 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
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.
- 02-19-2010, 09:47 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
How did you add jmf.jar to the project?
- 02-19-2010, 10:15 AM #3
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
Right click project-properties-java build path-add external jars
- 02-19-2010, 10:20 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
And what's the exact error message that you get?
- 02-19-2010, 10:32 AM #5
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
Access restriction: The type FrameGrabbingControl is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\jmf.jar
- 02-19-2010, 10:49 AM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
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.
- 02-19-2010, 10:52 AM #7
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
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
- 02-19-2010, 11:03 AM #8
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
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
-
Access restriction error in eclipse
By Steffan in forum New To JavaReplies: 0Last Post: 02-03-2010, 04:03 PM -
Error: Access restriction
By livnihai in forum EclipseReplies: 1Last Post: 11-25-2009, 06:53 PM -
[error] No enclosing instance of type RobotTest is accessible
By jon80 in forum New To JavaReplies: 1Last Post: 06-08-2009, 07:27 AM -
Making variables in a class accessible to all once changed
By int80 in forum New To JavaReplies: 13Last Post: 08-23-2008, 09:09 PM -
Can we lift the images restriction?
By Cyorxamp in forum Suggestions & FeedbackReplies: 30Last Post: 07-01-2008, 08:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks