PDA

View Full Version : Unable to find native library error


jranaudo
03-03-2010, 05:55 PM
Just installed on a windows box and getting the following errors on startup. Any idea what I need to do here? Can't find it in the documentation.

--------------------------------------------

Unable to find native library 'resin' for com.caucho.vfs.JniFilePathImpl. Resin expects to find this library in:
[10-03-03 13:38:12.287] {main} (Unix) \libexec64\libresin.so
[10-03-03 13:38:12.287] {main} On Unix, run ./configure; make; make install.
[10-03-03 13:38:12.287] {main}
[10-03-03 13:38:12.287] {main} The JVM exception was: java.lang.UnsatisfiedLinkError: no resin in java.library.path
[10-03-03 13:38:12.287] {main}
[10-03-03 13:38:12.287] {main} java.lang.UnsatisfiedLinkError: no resin in java.library.path

--------------------------------------------

[10-03-03 13:38:12.287] {main} Unable to find native library 'resin_os' for com.caucho.vfs.JniServerSocketImpl. Resin expects to find this library in:
[10-03-03 13:38:12.287] {main} (Unix) \libexec64\libresin_os.so
[10-03-03 13:38:12.287] {main} On Unix, run ./configure; make; make install.
[10-03-03 13:38:12.287] {main}
[10-03-03 13:38:12.287] {main} The JVM exception was: java.lang.UnsatisfiedLinkError: no resin_os in java.library.path
[10-03-03 13:38:12.287] {main}
[10-03-03 13:38:12.287] {main} java.lang.UnsatisfiedLinkError: no resin_os in java.library.path

emil
03-03-2010, 07:11 PM
Hi jranaudo,

You just need to run ./configure; make; make install

It's actually in the message you posted, but I guess it's not clear. Thanks for the feedback.

Emil

jranaudo
03-04-2010, 12:08 AM
thought that meant for Unix only. I searched through the documentation and cannot find the step needed for installing on a windows system. I figure I could just configure the JVM myself to have a reference to those DLL's.

nam
03-04-2010, 09:36 PM
Hi,

What version of Resin are you running? And Windows version? The Windows DLLs are in the win32 and win64 directories respectively.

jranaudo
03-04-2010, 09:48 PM
running window XP pro
JVM 1.6.18
resin pro 4.04

I tried setting the java.library.path system property in the resin.xml as a jvmarg.

<jvm-arg>-Djava.library.path=C:/resin-pro-4.0.4/win32/resin_os.dll</jvm-arg>

and like this

<jvm-arg>-Djava.library.path=C:/resin-pro-4.0.4/win32</jvm-arg>

neither works.

documentation does specify anything about this for windows.

Any help would be appreciated.

btw, the app server does work however but I want a clean install. I am trying to make the case to port our application to resin.

thanks.

nam
03-08-2010, 04:46 PM
I just checked the Resin source and we're printing the wrong message for when Resin cannot find the Windows DLLs.

Can you post your startup log? And can you check what's inside your win32 directory?

jranaudo
03-08-2010, 05:04 PM
Fixed the problem. Realized the java.library.path setting was being set in eclipse run configuration to "c:/resin/libexec32:c:/resin/libexec64:" which was not correct.

I changed it to: "c:/resin/win32" and problems solved.

Thanks for your assistance.