Loading the libraries dynamically

Hi all

I developped an application using jogl and everything works fine when I launch it as a standalone version with java -Djava.library.path=…

but now my application is to be used (as a pluggin) from another application and i cannot copy the libs to the client jre, and i have no control over the way the application is launched (i cannot enforce the use of -Djava.library.path=…)

i tried to happend my library path to the current one using System.setProperty(“java.library.path”, …); despite the fact that the path is correctly set, it won’t find the libraries (I have read that using setProperty() with java.library.path is useless since the path is only scanned once, at startup …)

Does anyone have an idea, on how to load the jogl library dynamically ?

Thanks in advance

Simply using System.setProperty() to change java.library.path won’t work. There are some horrible hacks to get around it. See this thread for one approach.

thanks, works great