Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: why i cannot use this class if working with another workspace?

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    53
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default why i cannot use this class if working with another workspace?

    I want to make a program that uses some of the Java Media Framework classes. I have the following problem:
    In this object declaration:

     private MediaLocator mediaLocator = null;

    I use eclipse, and on one work space this works fine, does not show any error, but on the workspace on which i need to use this class which is from Java Media Framework, i get the following error:

    Access restriction: The type MediaLocator is not accessible due to restriction on required library C:\Program Files\Java\jre7\lib\ext\jmf.jar
    Why ? what should i do to fix this?


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: why i cannot use this class if working with another workspace?

    Quote Originally Posted by piulitza View Post
    Why ? what should i do to fix this?
    Let me google that for you

    java - Access restriction on class due to restriction on required library rt.jar? - Stack Overflow

Similar Threads

  1. random not working in .class method
    By Spidey1980 in forum Java SE APIs
    Replies: 13
    Last Post: August 19th, 2011, 07:35 AM
  2. method not working outside of class
    By Scotty in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 23rd, 2011, 10:00 AM
  3. Replies: 1
    Last Post: March 22nd, 2011, 06:59 PM
  4. Replies: 4
    Last Post: January 26th, 2009, 11:03 PM