Ask a Question related to IBM DB2, Design and Development.
-
Almund Sebi #1
Empty java.library.path in linux stored procedure
Hello
I'd like to load a native library in my linux java stored procedure
using
System.loadLibrary("mylib");
But the JVM didn't find the library while searching in
java.library.path, because this property is empty at runtime.
I tried creating a symlink to my lib in /usr/lib, but it didn't help
either.
Is there a way I can specify java.library.path?
I didn't find a way to specify arguments which would then be passed to
the JVM by DB2
(e.g. -Djava.library.path=libpath would solve my problem)
Thanks for your help
Almund Sebi Guest
-
#19327 [Fbk->NoF]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
ID: 19327 Updated by: sniper@php.net Reported By: chregu@php.net -Status: Feedback +Status: No... -
System.out.println from java stored procedure
Does DB2 writes anywhere the output generated by System.out.println from a java stored procedure/function? I thought it's written into db2diag.log,... -
#19327 [Opn->Fbk]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
ID: 19327 Updated by: iliaa@php.net Reported By: chregu@php.net -Status: Open +Status: Feedback Bug... -
Java stored procedure
andylee <member30971@dbforums.com> wrote in message news:<2983974.1055232065@dbforums.com>... Hi, I'm having the same error when I upgraded to... -
Multithreaded java application as a stored procedure in Oracle
Has anyone successfully deployed a multithreaded java app as a stored procedure in Oracle? When we run it, it's hanging when a new thread is... -
Sean McKeough #2
Re: Empty java.library.path in linux stored procedure
JNI calls from java sps are not supported. You can work around this by
making the call to your function a cataloged C stored procedure.
Almund Sebi wrote:
> Hello
>
> I'd like to load a native library in my linux java stored procedure
> using
> System.loadLibrary("mylib");
> But the JVM didn't find the library while searching in
> java.library.path, because this property is empty at runtime.
>
> I tried creating a symlink to my lib in /usr/lib, but it didn't help
> either.
>
> Is there a way I can specify java.library.path?
> I didn't find a way to specify arguments which would then be passed to
> the JVM by DB2
> (e.g. -Djava.library.path=libpath would solve my problem)
>
> Thanks for your helpSean McKeough Guest
-
PM \(pm3iinc-nospam\) #3
Re: Empty java.library.path in linux stored procedure
There may be a way using DB2ENVLIST (db2set).
Just a guess.
PM
"Almund Sebi" <nyook@gmx.net> a écrit dans le message de news:
[email]947ecaa1.0308120400.16197409@posting.google.com[/email]...> Hello
>
> I'd like to load a native library in my linux java stored procedure
> using
> System.loadLibrary("mylib");
> But the JVM didn't find the library while searching in
> java.library.path, because this property is empty at runtime.
>
> I tried creating a symlink to my lib in /usr/lib, but it didn't help
> either.
>
> Is there a way I can specify java.library.path?
> I didn't find a way to specify arguments which would then be passed to
> the JVM by DB2
> (e.g. -Djava.library.path=libpath would solve my problem)
>
> Thanks for your help
PM \(pm3iinc-nospam\) Guest
-
Almund Sebi #4
Re: Empty java.library.path in linux stored procedure
Thank you.
I solved the .loadlibrary problem by unfencing the stored procedure.
Almund Sebi Guest
-
-
Unregistered #6
Re: Empty java.library.path in linux stored procedure
Hi
can u pls elaborate how to solve this prob ???
Pls share info .........Unregistered Guest



Reply With Quote


