Login  Register

Ubuntu 12.04 Jogl 2.0 installation from the command line

Posted by Agent Mulder on Nov 20, 2012; 1:56pm
URL: https://forum.jogamp.org/Ubuntu-12-04-Jogl-2-0-installation-from-the-command-line-tp4027073.html

Hello good people of jogamp.   I hope you can help me with my question.

I do java programming from the command line and I have problems installing Jogl 2.

In the shell of Ubuntu 12.04 I have succesfully installed Jogl with

% sudo apt-get install libjogl-java<enter>

I can compile and run many code examples that I pick from the internet. But when I run this code:

System.out.println("OpenGL Version: " + gl.glGetString(GL.GL_VERSION));

it outputs:

OpenGL Version: 2.1 Mesa 8.0.4

I want to work with OpenGL ES and/or withOpenGL 3. I have excellent books  on OpenGL and I want to study the language.

What % sudo apt-get install <name> do you suggest and waht changes should I make to PATH and CLASS_PATH?                                                    

Thank you! X