Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse not resolving javax.media.opengl.GL3 import

Tags:

java

eclipse

jogl

I have a Java class that has the following two imports:

import javax.media.opengl.GL;

import javax.media.opengl.GL3;

Eclipse is able to use the attached jar to resolve the first one for GL but it gives me an error on the second one saying it can't resolve the GL3 one.

like image 566
user3064141 Avatar asked Apr 01 '18 19:04

user3064141


1 Answers

Have you read our instructions for Eclipse in the official JogAmp wiki?

In my humble opinion, you use some JARs of JOGL 1 whereas your source code relies on JOGL <= 2.3.0. The latest version is JOGL 2.3.2 and "javax.media" has been renamed "com.jogamp" (for legal reasons).

like image 73
gouessej Avatar answered Sep 19 '22 01:09

gouessej