Menu

#24 Shared library fails if directory contains non-URI chars

open
JNI (5)
5
2012-04-09
2006-11-21
No

If the directory containing the jcurses.jar and libjcurses.dll files has a non-URL character anywhere within its absolute path, the load will fail. This is especially problematic as a space is translated to %20 and so the loadLibrary call fails.

The solution is the load the directory name as a file: URI and convert that to a file string rather than using a URI as a path directly. I have included a patch that I created as I needed it to work immediately. I have only tested the problem and fix on Windows XP.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.