Using lwjgl in Leiningen/Clojure

前端 未结 4 1446
独厮守ぢ
独厮守ぢ 2021-01-02 10:00

Solution

(1) (println (. System getProperty \"java.library.path\"))

This gives me a list of places java looks for native extensions.

4条回答
  •  醉酒成梦
    2021-01-02 10:50

    It's a bit confusing why Display is refusing to import, though other classes in the same jar file import properly

    (import '[org.lwjgl.opengl Util WindowsAWTGLCanvasPeerInfo])
    

    I suspect that this jar file is broken, perhaps you could try a different version.

    I tried debuggin this by running

    cd lib
    jar xf lwjgl-2.8.2.jar
    cd org/lwjgl/opengl/
    

    and then trying to load various classes i see there.

    lein swank also does tab completion which can help in exploring classes without extracting them from the shell.

提交回复
热议问题