The getLibraryPath() method from Toolkit returns first file with 'libjcurses' prefix. The problem occurs on 64bit Windows with error message: "Can't load IA 32-bit .dll on a AMD 64-bit platform".
The workaround is to rename or remove 32bit dll file, but this can be problematic while deploying program to different machines.
I suggest to check if the OS is either 32 or 64bit. For example:
String arch = System.getProperty("os.arch").toLowerCase();
boolean is64bit = "x86_64".equals(arch) || "amd64".equals(arch) || "ia64n".equals(arch);