入口
public static void main(String[] args) {
try {
System.out.println("HelloWorld");
@SuppressWarnings("unused")
GLCapabilities caps = new GLCapabilities(null);
System.out.println("HelloJOGL");
} catch (Exception e) {
e.printStackTrace();
}
}
pom.xml
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all</artifactId>
<version>2.1.5-01</version>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all</artifactId>
<version>2.1.5-01</version>
<classifier>natives-windows-amd64</classifier>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>nativewindow</artifactId>
<version>2.1.5-01</version>
<classifier>natives-windows-amd64</classifier>
</dependency>
<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt</artifactId>
<version>2.1.5-01</version>
</dependency>
<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt</artifactId>
<version>2.1.5-01</version>
<classifier>natives-windows-amd64</classifier>
</dependency>
</dependencies>