Hi,
Just to follow up with last night's plea for help! I tried to load the JRI
library directly into OpenOffice using System.loadLibrary("jri") and got the
following error...
Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in
java.library.path.
java.lang.UnsatisfiedLinkError: /opt/JRI/libjri.so:
/opt/openoffice.org2.1/program/libgcc_s.so.1: version `GCC_4.0.0' not found
(required by /usr/lib/R/lib/libR.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at Test.test(Test.java:10)
at CalcAddins$_CalcAddins.testR(CalcAddins.java:131)
Again, this stuff works when I just run a class outside of OpenOffice. It
seems as though OO is overriding my environment, but I don't know more than
that.
Thanks,
Wojciech
On 5/11/07, Wojciech Gryc <[EMAIL PROTECTED]> wrote:
Hi everyone,
It turns out that JRI (a Java / R interface) is licensed under LGPL, so it
seems this may be an even better option for the R / Calc interface. However,
when using the library, I ran into a weird problem...
I set all my environment variables in such a way that I can easily compile
and run java programs with the JRI library, and even load the external,
shared (*.so) JRI library without special commands... When I include code
referencing these classes from a UNO add-in, it can connect to every class
except Rengine.
Now, Rengine is where the external JRI library is loaded and extends
Thread (See the code here:
www.utsc.utoronto.ca/~04grycwo/Rengine.java).<http://www.utsc.utoronto.ca/%7E04grycwo/Rengine.java%29.>..
However, I can't even get it to return the static constant integers. What
ends up happening is Calc simply aborts the function, as if nothing happens.
There's no error output.
If anyone has any ideas, I'd be grateful for advice.
Thanks,
Wojciech
P.S.
A second wiki article:
http://wiki.services.openoffice.org/wiki/Calc_Macros:_Linear_Regression
--
Five Minutes to Midnight:
Youth on human rights and current affairs
http://www.fiveminutestomidnight.org/
--
Five Minutes to Midnight:
Youth on human rights and current affairs
http://www.fiveminutestomidnight.org/