We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › OpenGL + Eclipse Success in OS X
Page Index Toggle Pages: 1
OpenGL + Eclipse Success in OS X (Read 1394 times)
OpenGL + Eclipse Success in OS X
Oct 10th, 2005, 6:41am
 
Hey All,

I managed to get OpenGL and Processing91 to work within Eclipse in OS X (10.4.2). The key seems to lie in the choice of folder where you place the JOGL files.  I've placed the files (JOGL.jar and the JNILIB file) here:

~/Library/Java/Extensions/

Notice that this folder is in your HOME FOLDER, NOT in the SYSTEM FOLDER, and NOT in the "root" Library folder.

The "Java" folder didn't exist in my "home" Library, so I created both "Java" and "Extensions"

As far as the code goes, this is working for me:

import processing.core.*;
import processing.opengl.*;


public class Hello extends PApplet{
public void setup()
{
 int xx = 400;
 int yy = 300;
 size(xx,yy, OPENGL);

etc etc etc
-----------

Notice that Maramushi's hack:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Integrate;action=display;num=1114400513
is not necessary here.

A good test to see if everything is working is to run the JOGL demos from their site https://jogl-demos.dev.java.net/
When my Processing app was crashing the JOGL demos were not running either.

Hope that works for more than just me!

c.
 
Page Index Toggle Pages: 1