jline/jline — Issue #4: jline loadLibrary 32bit / 64bit DLL steps on its toes
Author: tstgruby
Created: 2011-12-01 11:20:24+00:00
State: open

Currently, jline extracts the DLLs using a name like "jline_.dll" (on MS Windows).

When an application using jline is running on a 64bit JVM, and you try to start another app using a 32bit JVM, it can't overwrite the original library (because it is still locked by the 64bit JVM process) and then tries to load it into the 32bit JVM (and vice versa):

~~~
java.lang.UnsatisfiedLinkError: C:\Users\Grubert\AppData\Local\Temp\jline_0_11_1.dll: Can't load AMD 64-bit .dll on a IA
32-bit platform
~~~