G
G
Gena2014-05-09 17:19:57
linux
Gena, 2014-05-09 17:19:57

How to install Jogl?

Hello. I found an article on the net about OpenGL in Java. But when I sat down to write an example, it turned out that I completely lacked the java-package javax.media , which should contain the Jogl classes. I tried to install OpenJDK 7, Oracle JDK 7, but it didn't get any easier. And I did not find a sensible guide for installing Jogl. I would be very grateful for help.
OS: LinuxMint x64
IDE: Eclipse
Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nesterione, 2014-05-09
@lukinov93

the easiest way is to use maven. In eclipse, just create a maven project. And these dependencies need to be added

<dependency>
  	<groupId>org.jogamp.gluegen</groupId>
  	<artifactId>gluegen-rt-main</artifactId>
  	<version>2.1.5-01</version>
</dependency>
<dependency>
  	<groupId>org.jogamp.jogl</groupId>
  	<artifactId>jogl-all-main</artifactId>
  	<version>2.1.5-01</version>
</dependency>

upd:
Here is a detailed instruction https://jogamp.org/wiki/index.php/Setting_up_a_Jog...
on windows I once used without maven for a long time, everything was very inconvenient, despite the fact that libraries had to be written natively for different platforms
I recently used maven, on ubuntu 12.04 x64 + eclipse, you write two dependencies, and that's it. The same code works without problems on windows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question