Jogl introduction and Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.