|
From: Jeff E. <JEm...@lg...> - 2003-03-14 20:51:34
|
You can change your jython script to add
-Djava.libary.path=wherever on the command line,
or dynamically from jython code like this:
import java
java.lang.System.setProperty('java.library.path',wherever)
You probably want to augment the existing value, like
this:
old=java.lang.System.getProperty('java.library.path')
sep=java.lang.System.getProperty('path.separator')
new=old+sep+wherever
java.lang.System.setProperty('java.library.path',new)
> -----Original Message-----
> From: do...@fi... [mailto:do...@fi...]
> Sent: Friday, March 14, 2003 12:57 PM
> To: jyt...@li...
> Subject: [Jython-users] Link Error to Java class making native call?
>
>
> I've got a class that makes calls to a native library and
> when I use it
> from Jython's interactive console I receive unsatisfied link error
> messages. Is there a way to set java.library.path or a
> similar variable in
> Jython so that a class that is imported can find underlying
> required native
> libraries??
>
> Any insights or solutions would be most appreciated.
>
> Regards,
>
> Doug
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
|