+ -
当前位置:首页 → 问答吧 → 如何安装JOGL

如何安装JOGL

时间:2008-03-19

来源:互联网

想请问如何使用java提供的JOGL?
目前我安装完后,编译测试档时都显示找不到java提供的openGL套件
目前我下的版本为
http://download.java.net/media/jogl/builds/nightly/jogl-1.1.1-pre-20080318-windows-amd64.zip

我的安装流程:
我的电脑为amd的应该是下这个版本的样子,作业系统为windows xp sp2
我安装的java版本为jdk1.6.0_02,之后我将两个jar档复制到
jdk1.6.0_02这个资料夹的lib资料夹内,而其他的dll档复制到
jdk1.6.0_02的jre资料夹内,最后将两个jar档的路径存进环境变数内

作者: tkdstkdstkds   发布时间: 2008-03-19

你可能看到2003年以前的安装指南了
新版的JOGL方法不同

From Jogl - User's Guide
https://jogl.dev.java.net/nonav/source/browse/*checkout*/jogl/doc/userguide/index.html?rev=HEAD&content-type=text/html

简单翻译
If you are developing a new application which uses JOGL, download the zip archive for your platform (for example., jogl-[version]-windows-i586.zip) and unzip it.
先解压缩zip

Modify your CLASSPATH environment variable to include the full paths to jogl.jar and gluegen-rt.jar; for example, ".;C:\Some\Other\Package\foo.jar;C:\Users\myhome\jogl-[version]-windows-i586\lib\jogl.jar;C:\Users\myhome\jogl-[version]-windows-i586\lib\gluegen-rt.jar". (If you did not previously set the CLASSPATH environment variable, you may want to make sure that ".", the current directory, is on your new CLASSPATH.)
把jogl.jar跟gluegen-rt.jar这两个档案的完整路径加到CLASSPATH

Modify your PATH environment variable (Windows), to contain the full path to the "lib" directory; for example, on Windows, add "C:\Users\myhome\jogl-[version]-windows-i586\lib" to your PATH using the System control panel, Advanced tab, Environment Variables button.
把lib这个资料夹的路径加到PATH里

At this point your Java installation should be able to see the JOGL class files. Users of IDEs such as NetBeans and Eclipse should consult the IDE's documentation to see how to add jar files and native libraries to their current project.
现在呢,你的JAVA应该可以抓到JOGL了,如果你有用IDE,请再自己设定外部Library

作者: chchwy   发布时间: 2008-03-20

感谢高手的指点~~~谢谢!

作者: tkdstkdstkds   发布时间: 2008-03-22

请问如何在Eclipse 之下安装Jogl

作者: jojoba26   发布时间: 2011-10-23

http://timelessname.com/jogl/lesson01/
[url]
http://wadeawalker.wordpress.com/2010/10/09/tutorial-a-cross-platform-workbench-program-using-java-opengl-and-eclipse/[/url]
我看了以上两篇,第1篇图的字太小,看不清楚,第2篇和我所用的Eclipse 不一样,
所以想请教一下,应如何设定
. . .
我用的是Eclipse indigo

作者: jojoba26   发布时间: 2011-10-23

热门下载

更多