lwjgl in an executable jar?

Started by Ramon, March 05, 2006, 12:19:48

Previous topic - Next topic

Ramon

Hi everyone

I made a little test program, draws a bit of stuff with OpenGL. It all works fine under Eclipse. But id like to make an executable jar of it, or something similar, so i could send that one jar to a friend, who can just launch it. So i guess i need to include lwjgl.jar and the lwjgl.dll in the jar? I know very little about class-paths and stuff, that might be the problem :wink:.

So far i tried this: i included the contents of the lwjgl.jar in my jar. (Becomes really messy) Then the program works fine, if you have the lwjgl.dll in the same folder. I tried to add the dll in the jar and launch it like that. But that doesn't work.

Maybe i'm doing this all wrong.. What's the best way to do this? And how :?:

Thanks in advance
Ramon

Evil-Devil

When you place the dlls and jars in the same folder or another folder. You have to use a batch file (windows) or any other equal start method.

IIRC, the manifest informations can only access files within the jar and not outside.

Ramon

Oh, ok.. Thanks  :)  Ill try that