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 with eclipse errors
Page Index Toggle Pages: 1
OpenGL with eclipse errors (Read 793 times)
OpenGL with eclipse errors
Aug 27th, 2007, 2:40am
 
Hi, first I would like to mention that I have read about every thread to find a solution, but nothing helped.

I have the latest eclipse with the latest Java and got the processing install without Java and I run winxppro. OPenGL within Processing is working great.

Now trying to have OpenGL for an App didn't work. P3D worked fine.

This is my little stripped down source with the errors. And I simply cannot figure what's wrong. Added -Djava.library.path=C:\Programme\processing-0125-expert\libraries\opengl\library

and added the libraries and every other thing I read of. Nada! Even installed the newest jogl and the former one and I don't know what more...

So, if you have any ideas, HELP! Wink

Code:

package de.myPackage;

import processing.core.*;
import processing.opengl.*;
import javax.media.opengl.GL;


public class OpenGLProc extends PApplet{
static public void main(String args[]) {
PApplet.main(new String[] {"OpenGLProc" });
}

public void setup()
{

size(200,200);

}

public void draw()
{

}
}

error:
java.lang.ClassNotFoundException: OpenGLProc

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at processing.core.PApplet.main(PApplet.java:6941)

at de.myPackage.OpenGLProc.main(OpenGLProc.java:10)
Re: OpenGL with eclipse errors
Reply #1 - Aug 27th, 2007, 9:11am
 
I think you need to add your package name in the main call like
Code:

PApplet.main(new String[] {"de.myPackage.OpenGLProc" });
Re: OpenGL with eclipse errors
Reply #2 - Aug 27th, 2007, 9:25am
 
OMG!! so easy, and I spent half the night wondering and wondering. Thank you so much (and for your wonderful tutorials)
Page Index Toggle Pages: 1