|
From: Craig M. <cr...@eb...> - 2003-07-29 16:53:17
|
Hi,
I'm trying to get libreadline-java-0.8.0 working on windows XP (pro)
under cygwin. Unfortunately the JVM refuses to load JavaGetline.dll no
matter where I install it. I've tried putting it in the current working
directory, c:/WINDOWS and c:/WINDOWS/system32. Although the JVM can see
it in all locations it fails to load it with the same error message
"java.lang.UnsatisfiedLinkError: ... JavaGetline.dll: Invalid access to
memory location."
Example error message generated by ReadlineTest program:
[craig@acer:src]$ java -classpath ../libreadline-java.jar
test.ReadlineTest dummy Getline
java.lang.UnsatisfiedLinkError: C:\WINDOWS\JavaGetline.dll: Invalid
access to memory location
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.gnu.readline.Readline.load(Readline.java:133)
at test.ReadlineTest.main(ReadlineTest.java:60)
JVM :
[craig@acer:classes]$ which java
/cygdrive/c/j2sdk1.4.2/bin/java
Any idea how to make the jvm load the dll? Do I need an XP version, or a
version compiled to work with the 1.4.2 JVM? If so, is it possible to
compile the dll with cygwin's gcc rather than Visual C++ (I read
something about this topic in the mailing lists but wasn't sure what the
answer was)?
Craig.
|