我安裝了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