Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (511)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JOGL on Mac Snow Leopard  (Read 2295 times)
0 Members and 1 Guest are viewing this topic.
Offline darkdemise99

Junior Newbie





« Posted 2010-09-16 05:21:04 »

I'm trying to install JOGL on my Mac Snow Leopard OS. I want to use it with Eclipse Galileo. So far I have downloaded jogl.jar, gluegen-rt.jar, and the .jnlib files and put them into my System/Libraries/Java/Extension/ folder as well as my Libraries/Java/Extension/ folder. I have also included both jar files in the Build Path of my project and set the native libraries. However, I get the following error on all JOGL components I am trying to use:

Access restriction: The type GLEventListener is not accessible due to restriction on the required library /Library/Java/Extension/jogl.jar

I checked the Build Path and there seems to be no restrictions on the file. When i go to the jogl.jar and check its properties, it says I am able to read and write.

Please help  Cry I need to fix this asap so I can start working on my program. If someone has a simple step-by-step tutorial (links to download files, how to set environment variables, etc) on how to set it up for Eclipse on Macs telling me exactly what I need to do to get everything working that would really help a lot.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #1 - Posted 2010-09-16 05:43:26 »

You shouldn't put all that in there. You don't have access to the folder because it's owned by the system (although it's read-only so theoretically should be okay). So you can either be a nut job and change permissions for the folder (no!) or you can implement JOGL in your classpath specifically for your project.

Since you're using Eclipse, here is how you do it:
- Create your project
- Drag the JAR files and the dylib files into your project in the browser on the left
- Right click on the jar files and select Build Path > Add to Build Path

You should then be good to go.

See my work:
OTC Software
Offline gouessej
« Reply #2 - Posted 2010-09-16 11:58:00 »

Hi!

Rather follow this tutorial to install JOGL on Eclipse:
https://sites.google.com/site/justinscsstuff/jogl-tutorial-1

I advise you to use Eclipse Helios (3.6) instead of Eclipse Galileo if you plan to get JOGL from the GIT repository (EGIT requires Eclipse 3.6).

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darkdemise99

Junior Newbie





« Reply #3 - Posted 2010-09-16 13:34:29 »

Ok, Thanks! I'll try those out. One quick question though: After I put the files into the System/Library folder, I tried taking them out. This caused an error in all my projects because they are now missing the .jar files I took out. I tried removing them from the build path in Eclipse but it won't let me. Is there any way to fix this?
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #4 - Posted 2010-09-17 15:20:25 »

Ok, Thanks! I'll try those out. One quick question though: After I put the files into the System/Library folder, I tried taking them out. This caused an error in all my projects because they are now missing the .jar files I took out. I tried removing them from the build path in Eclipse but it won't let me. Is there any way to fix this?

You should be able to remove them from the build path just by right clicking and selecting to do so. If that doesn't work for some reason, go the Properties menu for your project and do it from there.

See my work:
OTC Software
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (42 views)
2014-10-16 15:22:06

Norakomi (32 views)
2014-10-16 15:20:20

lcass (37 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (66 views)
2014-10-14 00:35:47

TehJavaDev (58 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (85 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!