我安装了Jogl并将其包含在eclipse的构建路径中,但它在引用的库下。这是该计划。我安装了JOGL,但为什么Eclipse不能识别我的Hello World程序?
public class exceptionhandler
{ // open HelloWorld
public static void main(String[] args)
{ // open main
try
{ // open try
System.loadLibrary("jogl");
System.out.println("Hello World! (The native libraries are installed.)");
} // close try
catch (Exception e) // all try's need a catch
{ } // even if the catch does nothing
} // close main
} // close HelloWorld
我不包括进口因为Eclipse不认识了。所以,当我运行它,我得到这个>
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at exceptionhandler.main(exceptionhandler.java:8)
https://sites.google.com/site/justinscsstuff/jogl-tutorial-1 – 2012-02-17 19:38:43
@BrianRoach leterally只是做了一切,出于某种原因我仍然得到相同的错误 – 2012-02-17 20:01:11