JOGL簡介與安裝

來源:互聯網
上載者:User

轉自:http://blog.csdn.net/zengrocken/article/details/2063471

JOGL的安裝: 
在https://jogl.dev.java.net/上下載jogl的最新包,目前的版本為rc7。 
以windows平台為例,下載jogl-1.1.1-rc7-windows-i586.zip ,解壓到你想要放的位置,把包中lib的jar檔案加入到classpath中,把lib下的.dll檔案複製到你的java運行環境的bin下。 

安裝完成後運行以下程式,如果成功輸出Hello World,說明安裝成功。 

import javax.media.opengl.*; 

public class HelloWorld 

public static void main(String arg[]) 

try 

System.loadLibrary("jogl"); 
System.out.println("Hello World"); //如果現實hello world,說明jogl native lib安裝成功。 
GLCapabilities caps = new GLCapabilities(); 
System.out.println("Hello JOGL"); //如果現實hello jogl說明可以正常調用。 

catch (Exception e) 

System.out.println(e); 


瞭解更多,請參閱官方網站的使用者指南 
https://jogl.dev.java.net/unbranded-source/browse/...ev=HEAD&content-type=text/html  

 

歡迎訪問我的小站http://bbs.hpages.cn

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.