[英]Informing java where to import from (lib)
I'm using java from command line and coding in gedit, and am having trouble importing lwjgl. 我从命令行使用Java,并在gedit中进行编码,但是在导入lwjgl时遇到问题。
I have my source code under src/uk/co/gossfunkel and have the lwjgl.jar in lib>jars and the natives under lib>natives. 我的源代码在src / uk / co / gossfunkel下,并且lib> jars中有lwjgl.jar,而lib> natives下则是本地人。 How do I let the compiler know that the import org.lwjgl.*;
我如何让编译器知道import org.lwjgl.*;
statement refers to org.lwjgl in lib>jars? 语句引用lib> jars中的org.lwjgl?
javac -cp /path/to/lib/jars/lwjgl.jar ...
for Unix. 对于Unix。
javac -cp c:\path\to\lib\jars\lwjgl.jar ...
for Windows. 对于Windows。
See http://docs.oracle.com/javase/1.3/docs/tooldocs/solaris/classpath.html or http://docs.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html for more explanations. 有关更多信息,请参见http://docs.oracle.com/javase/1.3/docs/tooldocs/solaris/classpath.html或http://docs.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html解释。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.