From: Craig M. <cr...@eb...> - 2003-08-15 10:15:11
|
Hi Bernhard, >Hi Craig, > >the JavaGetline.dll in the contrib-directory is only created with cygwin, it >should run without it. Can you reproduce your problem from a "normal" >DOS-prompt (to be honest: I have not yet worked with XP, so I don't know if >it still has a DOS-prompt). > > I get the same result when I run it from a DOS prompt. Looks like we'll need a new dll for XP. Craig. >It might be possible that the DLL does not run under XP (the Visual C++ >compiler is rather old). I have not yet managed to create a working DLL with >cygwin, it should be possible but I can't figure out how. > >Bernhard > > > >>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. >> >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by: Free pre-built ASP.NET sites including >>Data Reports, E-commerce, Portals, and Forums are available now. >>Download today and enter to win an XBOX or Visual Studio .NET. >>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >>_______________________________________________ >>Java-readline-users mailing list >>Jav...@li... >>https://lists.sourceforge.net/lists/listinfo/java-readline-users >> >> > > > |