Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#30 The windows native dll does not load on Windows XP

open
nobody
None
0.9.6
1
2014-12-08
2014-01-03
jbonedev
No

The docs say this needs to be in the same dir as the .jar, but this is incorrect.

You can see someone else with the same issue here:
http://www.experts-exchange.com/Programming/Languages/Java/Q_21826748.html

That user says:

Don't know what was wrong with their code but I saved libjcurses.dll on my c:\ drive and changed the System.load(getLibraryPath()) to System.load("c:\libjcurses.dll") under Toolkit.java and it worked.

I have made the following change as a workaround, where my dll lives in my project under \deps\windows\

37c37
<     System.load(getLibraryPath());
---
>     System.load(System.getProperty("user.dir") + "\\deps\\windows\\libjcurses.dll");

But this is an annoying workaround. Also you need to prepend the system property "user.dir" which is the CWD as load() expects an absolute path.

At least allow for some kind of system property or env variable to be set to point to this as a quick fix.

Discussion

  • Andy
    Andy
    2014-01-03

    I would love to help you with this issue, however I do not currently have any time to devote to this project, nor does anyone else appear to. If you would like commit access, please let me know.