Running project outside NetBeans

Started by DarkPeter, September 26, 2011, 17:34:01

Previous topic - Next topic

DarkPeter

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

Chuck

<path> is the very same path you put into netbeans.

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