Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tekikke

macrumors newbie
Original poster
May 8, 2007
3
0
hi,

i have a program who has to start Openoffice from java, and run a macro in openoffice. I have the java program who works on Linux.
But when i try to run it on Mac i get the following error:


Exception in thread "main" java.lang.UnsatisfiedLinkError: createJNI
at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native Method)
at com.sun.star.lib.connections.pipe.PipeConnection.<init>(PipeConnection.java:137)
at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:145)
at com.sun.star.comp.connections.Connector.connect(Connector.java:146)
at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:133)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:292)
at Runmacro.macro(Runmacro.java:95)


The line where i get this error on is the following:
94: com.sun.star.uno.XComponentContext xContext = null;
95: xContext = com.sun.star.comp.helper.Bootstrap.bootstrap();
96: xMCF = xContext.getServiceManager();

hopefully some of you can help me or give me a hint in witch direction i could search.

grtzzz
 

janey

macrumors 603
Dec 20, 2002
5,316
0
sunny los angeles
http://technology.amis.nl/blog/?p=1284 makes it sound like you're missing some dependencies.

Can't help much, sorry! but maybe this is a start...

Wouter van Reeven Says:
September 11th, 2006 at 10:39 am Hi Pieter-Jan, This error occurs when the bootstrap method calls “pipe( p.getInputStream(), System.out, “CO< ” );” which depends on platform specific libraries. These libraries can be made available by putting the directory containing the soffice(.exe) executable on the java.library.path variable. This can be done under Windows by including the directory holding the executable to the PATH variable. On Linux and Unix this directory should be added to the LD_LIBRARY_PATH variable for the user running the application. Please make sure this is documented when you want to distribute your application through Java Web Start else noone will be able to run your application! HTH, Wouter
 

tekikke

macrumors newbie
Original poster
May 8, 2007
3
0
i've also found that website, but i don't know how to do these things on mac.
in the article is only the description for linux and windows. maybe someone more information?
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
OpenOffice (rather than NeoOffice) doesn't get much love on the Mac, especially as you have to use X11.
 

tekikke

macrumors newbie
Original poster
May 8, 2007
3
0
hi,

The error is exactly the same when i make use of neooffice and de classes in it.
So it doesn't change if i do it with neooffice and make use of it jars. :(

maybe someone who has another idea of what it could be?

grtzzz
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.