From: http://blog.csdn.net/zengrocken/article/details/2063471
Jogl installation:
Download the latest joglpackage at https://jogl.dev.java.net/and the latest version is rc7.
Take windows as an example, download jogl-1.1.1-rc7-windows-i586.zip, decompress it to the location you want to put, add the Lib JAR file in the package to classpath, and copy the. dll file under lib to the bin of your Java Runtime Environment.
After the installation is complete, run the following program. If Hello world is successfully output, the installation is successful.
Import javax. Media. OpenGL .*;
Public class helloworld
{
Public static void main (string Arg [])
{
Try
{
System. loadlibrary ("jogl ");
System. Out. println ("Hello World"); // If Hello world is used, jogl native Lib is successfully installed.
Glcapabilities caps = new glcapabilities ();
System. Out. println ("Hello jogl"); // if the real hello jogl is used, it can be called normally.
}
Catch (exception E)
{
System. Out. println (E );
}
}
}
For more information, see the user guide on the official website.
Https://jogl.dev.java.net/unbranded-source/browse/...ev=HEAD&content-type=text/html
Welcome to my little station http://bbs.hpages.cn