I can't get LWJGL/openGL/SWT to work.

I’m trying to run the code in this snipet: link.

I get the following errors:


the import org.eclipse.swt.opengl cannot be resolved
GLData cannot be resolved to a type
GLCanvas cannot be resolved to a type

The errors are on lines 25 and 26:

import org.eclipse.swt.opengl.GLCanvas;
import org.eclipse.swt.opengl.GLData;

I’ve been trying to get this to work for about an hour, but I’m missnig something, anyone?

You are probably using a too old version of eclipse, SWT to be precise. You need at least version 3.2M3.