LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: mcsquared on February 27, 2007, 14:13:56

Title: Locating libraries from a jar
Post by: mcsquared on February 27, 2007, 14:13:56
Hi

I've been making a game using eclipse and now i'd like to export it as an executable .jar file.

However when I do this it can no longer locate the lwjgl libraries and just throws up errors when I try to run it.

Can somebody please explain exactly what is the best way to include the libraries with a completed game.

Thanks
Title: Re: Locating libraries from a jar
Post by: Matzon on February 27, 2007, 16:48:41
either merge all the jars or append the lwjgl jars to your apps classpath via the manifest.
the native files will have to be in the same dir to be able to launch with double clicking on a jar file
Title: Re: Locating libraries from a jar
Post by: mcsquared on February 28, 2007, 17:02:57
Thanks for your help

Works fine   :)