LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: DarkPeter on September 26, 2011, 17:34:01

Title: Running project outside NetBeans
Post by: DarkPeter on September 26, 2011, 17:34:01
Hi,
I made game in LWJGL. I would like to run this game outside NetBeans but... when I click on the jar file nothing happens :/
I found this:
QuoteFinally, you need to tell NetBeans where the Native Libraries (i.e, DLL, JNILIB, DYLIB, SO files) are for your system so that the natives are linked when running.
Select the Run category and then type the following into the VM Options, replacing what is in bold to suit your system:
-Djava.library.path=<lwjgl-X.X path>/native/<linux|macosx|solaris|windows>
Note: If your path has any spaces in it, you'll need to surround it in quotes like this:
-Djava.library.path="My Spacey Folder/lwjgl-X.X/native/windows"
Note: This only means that you can run the program inside of NetBeans. To run it outside of NetBeans, run this command:
java -Djava.library.path=<path> -jar <name>.jar

For more information on distribution, please go to the General FAQ.
but I do not know what to insert in the field <name> and <path>.
HELP!!!!
PS: Sorry for the mistakes. I don't speak english very well :P
Title: Re: Running project outside NetBeans
Post by: Chuck on September 26, 2011, 22:30:13
<path> is the very same path you put into netbeans.

<name> is the name of the jar file you built.