library search path

Started by Simon Felix, March 21, 2006, 12:14:22

Previous topic - Next topic

Simon Felix

hi there,

we (the developers of cultris) regularly have problems with incompatible versions of dll's (especially fmod.dll and devil.dll) lying around in system32. our proposal is to change the load order of libraries...

possibly by specifying a library path to the Sys.initialize()-method.



any thoughts? any volunteers?

regards,
simon
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/

Matzon

The current search order is:
java.library.path
current working dir
let OS decide

The first one is user specifiable and the last two are fixed

if you have issues with fmod and devil being loaded from somewhere else, then the issue is that java.library.path is set wrong.

If we changed the order, the distributor would have no control since whatever is user specifiable is run after the fixed locations.

Simon Felix

hmm.... ok.

so the solution is to set the java.library.path to whatever i want...


System.setProperty("java.library.path",".");




ok, thanks. i hope that'll work as intended.



simon
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/