I am building an eclipse plugin (a notes plugin, but its a eclipse plugin in the end). One of the plugins my plugin depends on needs to load a native dll.

The problem is, that fails depending on where in the disk such dll is. If it is longer than a certain threshold I get the error below

java.lang.UnsatisfiedLinkError: nlsxbe (The filename or extension is too long. ) 
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:952) 
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:921) 
at java.lang.System.loadLibrary(System.java:452) 
at lotus.domino.NotesThread.load(Unknown Source) 
at lotus.domino.NotesThread.checkLoaded(Unknown Source) 
at lotus.domino.NotesThread.sinitThread(Unknown Source) 
at com.atempo.adam.lotus.plugin.views.TopicView.createPartControl(TopicView.java:609)

I have added the path to Path env var, and also registered the dll to no avail. My env is Ms vista profesional, java1.5, eclipse3.4 (and lotus 8)

Anyone out there have a clue?

Many thanks in advance.