如何使用JOGL库执行项目?

时间:2012-10-17 10:43:58

标签: java jogl

我正在使用JOGL开发Java项目,但是当我尝试执行我的项目时,我会收到以下消息:

Catched FileNotFoundException: E:\Eclipse\Projects\FuzzyProject\lib\jogl2-rc10\gluegen-natives-windows-i586.jar (Can't find file), while TempJarCache.bootstrapNativeLib() of jar:file:/E:/Eclipse/Projects/FuzzyProject/lib/jogl2-rc10/gluegen-natives-windows-i586.jar!/ (file:/E:/Eclipse/Projects/FuzzyProject/lib/jogl2-rc10/ + gluegen-natives-windows-i586.jar)
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path

如何解决此问题?

2 个答案:

答案 0 :(得分:1)

来自控制台java -Djava.library.path=<path to native library> -jar (if jar) <name of jar or class>

仅使用代码System.loadLibrary(<path to native library>)

来自Eclipse:Run Configuration -> Arguments -> VM Argiments->-Djava.library.path=<path to native library>

答案 1 :(得分:1)

我假设你是从eclipse和windows机器上运行的,所以看看这里:I installed JOGL but why wont Eclipse recognize my hello world program?

对于gluegen,请看这里:java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path RCP Application