That should be all you need to get up-and-running without an IDE or build script! To do so, you'll have to provide the absolute location, which on Windows would be, for example: =C:\jwjgl-2.8.4\native\windows It's perfectly acceptable to specify a location for the native files outside of the current working directory. If you accidentally include the /, it will treat native as an absolute directory, which is probably not what you want. By omitting the leading /, you're telling java that the native directory is a subdirectory relative to the current working directory. Note that you did not put a leading / in front of native. = specifies where your native files can be found. class files can be found in the current directory and within any jars under the /lib directory. :lib/* =native/linux HelloWorldĪgain, -cp specifies that your compiled. Now run the following command from the parent directory: java -cp. ![]() :lib/lwjgl.jar:lib/jinput.jar etc, but * (java 1.6 only, I believe) is a shortcut to specify all jars in a directory. ![]() Note that you could manually specify the. (the current directory) and any jar file under lib/. class files to compile your program can be found within both. ![]() (all your native files)įrom your shell, navigate to the parent directory containing HelloWorld.java, and type the following: javac -cp. Set up a directory structure as such: /HelloWorld.java The following works on my Windows machine, but I've adapted the shell commands for linux formatting (colons vs.
0 Comments
Leave a Reply. |