Java - Library path error

后端 未结 4 910
野趣味
野趣味 2021-01-06 05:39

I\'m trying to start my java game but I have some troubles with the java command line:

Here is what I type:

C:\\>java -Djava.library.path=%cd%\\lib

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 06:15

    You use the java.library.path option to specify the location of native libraries to load. In the location pointed to by that option you would place all dll or .so files required by LWJGL. On the other hand, you need to make sure that all required JAR files are on your classpath, via the -classpath option. Currently, you have your JAR files in the wrong directory.

提交回复
热议问题