How do I load the xith libs from a folder?

I’d like to be able to send my game to people in something like this folder structure:

-+ Game Folder/
---- My App.jar
—+ libs/
------ xith.jar
------ jogl.jar
—+ native libs/
------ nativelib.jnilib
------ nativelib.dll

How can I load these libraries from within the code of My App.jar? Is it not possible? If it isn’t, then is it possible to load native libraries and jar libraries from within a single jar file (i.e. My App.jar contains the folder libs)?

from the comandline; think its:

-Dlibrary.path=foldername/my.dll

I think its more like:

-Djava.library.path=foldernamefolder2

where seperator is ; on windows and : on linux?

Kev

thats the fella… memory fails me again! oops

or use webstart less hassle and nicer… there are also lots
of nice exe runners (and .app) stuff out there for java now.

Thanks, but my question was how can I run it from within the code. I’d like to be able to do this to make it easier for my users since I don’t want them to have to deal with the command line. Someone suggested for me to use a java application installer called IzPack that would install the libraries in the proper global java extensions folders, however, I’m still wondering if it is even possible to do this from within the application code.

As a reply to exe wrappers, you could take a look at http://jsmooth.sourceforge.net/.
I am using it and I don’t have any problem with it.

Good luck