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 7 of 7

Thread: JOGL Problem

  1. #1
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default JOGL Problem

    I finally got to working with 3d in java. I followed the installation steps and I still get errors when trying to write code.
    import java.awt.*;
    import javax.swing.*;
    import net.java.games.jogl.*;
     
    public class jogl extends JFrame {
    	static Animator anim = null; // This line gives me the following error: "Access restriction: The type Animator is not accessible due to restriction on required library C:\Program Files (x86)\Java\jre6\lib\ext\jogl.jar"
    	public static void main(String[] args){
     
    	}
    }


  2. #2
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default Re: JOGL Problem

    no one knows? I think I'm going to stick with pseudo 3d

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JOGL Problem

    Likely you don't have access rights to the JOGL library. Move the .jar file into somewhere that's not protected (for example into your personal users folder).

  4. #4
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default Re: JOGL Problem

    How do I not have access if im the admin account? How do I use it if i move it into a users file?

  5. #5
    Junior Member
    Join Date
    Sep 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JOGL Problem

    It's possible to be a problem with Eclipse IDE and the way of using libraries with:

  6. #6
    Junior Member
    Join Date
    Sep 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JOGL Problem

    try netbeans

  7. #7
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default Re: JOGL Problem

    I did alot more research and I got it to work! What I had to do was add it to the build path, and add it to the top of the list. If you guys want I can write a tutorial for it.

Similar Threads

  1. JOGL
    By helloworld922 in forum Java IDEs
    Replies: 3
    Last Post: July 21st, 2009, 03:19 AM