<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting started with the OpenOffice.org API part III : starting OpenOffice.org with jars not in the OOo install dir</title>
	<atom:link href="http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Wouter van Reeven</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3704</link>
		<dc:creator>Wouter van Reeven</dc:creator>
		<pubDate>Wed, 01 Apr 2009 17:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3704</guid>
		<description><![CDATA[Hi all, I will take this article offline later this week. The reason is that this article is much outdated and there are great possibilities to achieve what&#039;s described here using the OpenOffice.org plugin for NetBeans. I suggest you start using that.


Thanks, Wouter]]></description>
		<content:encoded><![CDATA[<p>Hi all, I will take this article offline later this week. The reason is that this article is much outdated and there are great possibilities to achieve what&#8217;s described here using the OpenOffice.org plugin for NetBeans. I suggest you start using that.</p>
<p>Thanks, Wouter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martin joseph</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3703</link>
		<dc:creator>martin joseph</dc:creator>
		<pubDate>Thu, 12 Mar 2009 04:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3703</guid>
		<description><![CDATA[hai Wouter van Reeven,

First of let me thank u once again for spending a lot of your time for helping others
on such a topic where finding good documentation is so hard. I had previously read the
part ii of your article series where u helped me to insert bookmarks using open office.org api

So ... straight to my problem then . I did everything as u have said in this article .But my program
runs into an exception or something at the line

Object context = xUrlResolver.resolve( sConnect );

i think this is the same error that InchBinich was referring to ...

could you help me rectify this ...

i will tell u what i did till now

i subclassed Bootstrap class
and copied in the methods u had said ie (bootstrap method, createInitialComponentContext, insertBasicFactories,pipe methods) .I then changed the few lines of code u had said

Then i used the FirstUnoContact class shown in the developers guide .
In this class i specified the ooobase directory as u had said ...

I am using windows xp os , open office org 2.4, netbeans 6.5

I had copied the 5 jar files u mentioned into a new folder and added them into my project in netbeans

Had i done something wrong .. or missed out on something ..

Hoping  u will respond to my query ,
martin joseph]]></description>
		<content:encoded><![CDATA[<p>hai Wouter van Reeven,</p>
<p>First of let me thank u once again for spending a lot of your time for helping others<br />
on such a topic where finding good documentation is so hard. I had previously read the<br />
part ii of your article series where u helped me to insert bookmarks using open office.org api</p>
<p>So &#8230; straight to my problem then . I did everything as u have said in this article .But my program<br />
runs into an exception or something at the line</p>
<p>Object context = xUrlResolver.resolve( sConnect );</p>
<p>i think this is the same error that InchBinich was referring to &#8230;</p>
<p>could you help me rectify this &#8230;</p>
<p>i will tell u what i did till now</p>
<p>i subclassed Bootstrap class<br />
and copied in the methods u had said ie (bootstrap method, createInitialComponentContext, insertBasicFactories,pipe methods) .I then changed the few lines of code u had said</p>
<p>Then i used the FirstUnoContact class shown in the developers guide .<br />
In this class i specified the ooobase directory as u had said &#8230;</p>
<p>I am using windows xp os , open office org 2.4, netbeans 6.5</p>
<p>I had copied the 5 jar files u mentioned into a new folder and added them into my project in netbeans</p>
<p>Had i done something wrong .. or missed out on something ..</p>
<p>Hoping  u will respond to my query ,<br />
martin joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanalyw</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3702</link>
		<dc:creator>tanalyw</dc:creator>
		<pubDate>Tue, 24 Feb 2009 02:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3702</guid>
		<description><![CDATA[Hi,

i tried the suggestion given above. However, it hanged when trying to resovle s2 in the bootstrap method. any idea?
thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i tried the suggestion given above. However, it hanged when trying to resovle s2 in the bootstrap method. any idea?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yanot</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3701</link>
		<dc:creator>yanot</dc:creator>
		<pubDate>Thu, 13 Nov 2008 22:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3701</guid>
		<description><![CDATA[Hello all,
I spent nearly whole day trying to implement this stuff. Finally I got the same problem like described @vishal, @vbms, @srinivas, ...
&quot;java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)  etc.&quot; (Windows XP and Solaris 10)
I read this article and discussion several times without success, but finally the following command (executed on Solaris) solved my problem:
&quot;LD_LIBRARY_PATH=/opt/csw/OpenOffice.org/program:$LD_LIBRARY_PATH java -jar myapplication.jar&quot;
Hope it help to all other who have this problem (I hope this will fix this problem on Windows as well, but now I&#039;m exhausted - I&#039;ll test it tomorrow).]]></description>
		<content:encoded><![CDATA[<p>Hello all,<br />
I spent nearly whole day trying to implement this stuff. Finally I got the same problem like described @vishal, @vbms, @srinivas, &#8230;<br />
&#8220;java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)  etc.&#8221; (Windows XP and Solaris 10)<br />
I read this article and discussion several times without success, but finally the following command (executed on Solaris) solved my problem:<br />
&#8220;LD_LIBRARY_PATH=/opt/csw/OpenOffice.org/program:$LD_LIBRARY_PATH java -jar myapplication.jar&#8221;<br />
Hope it help to all other who have this problem (I hope this will fix this problem on Windows as well, but now I&#8217;m exhausted &#8211; I&#8217;ll test it tomorrow).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3700</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Mon, 27 Oct 2008 17:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3700</guid>
		<description><![CDATA[Hi,

I am using Solaris SPARC &amp; trying to open word document using open office API. I did everything mentioned in your article/forum. But I am getting following error.

Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: createJNI
        at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native Method)
        at com.sun.star.lib.connections.pipe.PipeConnection.(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 DocumentHandling.Bootstrap.bootstrap(Bootstrap.java:154)

Can you let me know if Need solaris specific jar files? if yes from where can I download them?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using Solaris SPARC &amp; trying to open word document using open office API. I did everything mentioned in your article/forum. But I am getting following error.</p>
<p>Exception in thread &#8220;main&#8221; java.lang.UnsatisfiedLinkError: createJNI<br />
        at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native Method)<br />
        at com.sun.star.lib.connections.pipe.PipeConnection.(PipeConnection.java:137)<br />
        at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:145)<br />
        at com.sun.star.comp.connections.Connector.connect(Connector.java:146)<br />
        at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:133)<br />
        at DocumentHandling.Bootstrap.bootstrap(Bootstrap.java:154)</p>
<p>Can you let me know if Need solaris specific jar files? if yes from where can I download them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xman</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3699</link>
		<dc:creator>xman</dc:creator>
		<pubDate>Thu, 25 Sep 2008 16:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3699</guid>
		<description><![CDATA[Hi, I also spent half a day w/o any result. I try to create an Eclipse plug-in which shall create/modify a document. I always get an exception (BootstrapException: no office executable found!) when I call Bootstrap.bootstrap(). I added all jars from OOo/program/classes into the build-path which is actually defined in the MANIFEST.MF file. I added the path hard-coded (this is another thing I have to solve), e.g. &quot;external:D:/Program Files/OpenOffice.org 2.4/program/classes/juh.jar&quot;.
BTW, I first created a simple Java app which includes all jars directly and that worked. But it does not work with the Eclipse plug-in.
Any hints?
Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi, I also spent half a day w/o any result. I try to create an Eclipse plug-in which shall create/modify a document. I always get an exception (BootstrapException: no office executable found!) when I call Bootstrap.bootstrap(). I added all jars from OOo/program/classes into the build-path which is actually defined in the MANIFEST.MF file. I added the path hard-coded (this is another thing I have to solve), e.g. &#8220;external:D:/Program Files/OpenOffice.org 2.4/program/classes/juh.jar&#8221;.<br />
BTW, I first created a simple Java app which includes all jars directly and that worked. But it does not work with the Eclipse plug-in.<br />
Any hints?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: site admin</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3698</link>
		<dc:creator>site admin</dc:creator>
		<pubDate>Mon, 02 Jun 2008 19:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3698</guid>
		<description><![CDATA[&lt;p&gt;Hi Sean,&lt;/p&gt;
&lt;p&gt;Sorry, I have no experience with this at all. AFAIK you&#039;ll need the OfficeBean for this. For more info, see&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/JavaBean/JavaBean_for_Office_Components&quot; rel=&quot;nofollow&quot;&gt;the OOo OfficeBean&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH, Wouter&lt;/p&gt;
&lt;p&gt;P.S. This article has become obsolete now that there is a VERY GOOD OOo plugin for NetBeans. Please go and check it out!!!&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Sean,</p>
<p>Sorry, I have no experience with this at all. AFAIK you&#8217;ll need the OfficeBean for this. For more info, see</p>
<p><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/JavaBean/JavaBean_for_Office_Components" rel="nofollow">the OOo OfficeBean</a></p>
<p>HTH, Wouter</p>
<p>P.S. This article has become obsolete now that there is a VERY GOOD OOo plugin for NetBeans. Please go and check it out!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3697</link>
		<dc:creator>sean</dc:creator>
		<pubDate>Thu, 29 May 2008 16:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3697</guid>
		<description><![CDATA[Dear  Wouter van Reeven and readers,
Thank you for your invaluable information. I have now managed to build and run one of examples supplied with the openoffice sdk. Without your help, it would have been looking very ugly.
They certainly don&#039;t know how to make something easy to learn.
However, now I am trying to embed the writer in a normal java app, as a JFrame or so (rather than magically invoke oo writer application as a whole), and I have come a little stuck.
The example they so kindly provided (file:///usr/lib/openoffice/sdk/examples/java/EmbedDocument/EmbeddedObject) seems to provide an example JFrame object which can be used...
but no example on how to use it. In fact, hardly a kind comment at all in the code, and none describing arguments to functions etc. Not very nice.
Has anyone managed to do this properly?
What I have managed to get running so far only looks like an ugly Textpane .. with no proper colours, no menu, no buttons... no mouse listener .. no copy and paste...
I hardly think it is working at all..... So I have obviously done something wrong. But finding good documentation and examples on this ... i am finding difficult. Or maybe i am just not a very good google searcher?
Can anyone help me?
All I want to achieve is this:
1. an open office window looking JFrame, with full menu and buttons and font selector etc. (no fancy changes, removing this, adding that)
2. implement a drag and drop listener on this ooJFrame, so that I can tailor the content dragged from one java component to this OO Component.
     (i know how to do this in a normal java context.... is it the same in this circumstance?)

any pointers? Please!!!??!]]></description>
		<content:encoded><![CDATA[<p>Dear  Wouter van Reeven and readers,<br />
Thank you for your invaluable information. I have now managed to build and run one of examples supplied with the openoffice sdk. Without your help, it would have been looking very ugly.<br />
They certainly don&#8217;t know how to make something easy to learn.<br />
However, now I am trying to embed the writer in a normal java app, as a JFrame or so (rather than magically invoke oo writer application as a whole), and I have come a little stuck.<br />
The example they so kindly provided (file:///usr/lib/openoffice/sdk/examples/java/EmbedDocument/EmbeddedObject) seems to provide an example JFrame object which can be used&#8230;<br />
but no example on how to use it. In fact, hardly a kind comment at all in the code, and none describing arguments to functions etc. Not very nice.<br />
Has anyone managed to do this properly?<br />
What I have managed to get running so far only looks like an ugly Textpane .. with no proper colours, no menu, no buttons&#8230; no mouse listener .. no copy and paste&#8230;<br />
I hardly think it is working at all&#8230;.. So I have obviously done something wrong. But finding good documentation and examples on this &#8230; i am finding difficult. Or maybe i am just not a very good google searcher?<br />
Can anyone help me?<br />
All I want to achieve is this:<br />
1. an open office window looking JFrame, with full menu and buttons and font selector etc. (no fancy changes, removing this, adding that)<br />
2. implement a drag and drop listener on this ooJFrame, so that I can tailor the content dragged from one java component to this OO Component.<br />
     (i know how to do this in a normal java context&#8230;. is it the same in this circumstance?)</p>
<p>any pointers? Please!!!??!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hol.sten</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3696</link>
		<dc:creator>hol.sten</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3696</guid>
		<description><![CDATA[Hello Ichbinich, today I made the following observations, trying to get the above Bootstrap modifications working: First observation: Putting the JAR files juh.jar, jurt.jar, ridl.jar and unoil.jar into a directory outside OOo&#039;s installation directory and modifying Bootstrap.java as written above does not suffice. My application terminated after executing &quot;xUrlResolver.resolve(sConnect);&quot;, too. Second observation: To get the modifications working is possible by using one of the following alternatives: 1) Put the ooBaseDirectory into the CLASSPATH. 2) Add -Djava.library.path=&quot;C:/Programme/OpenOffice.org 2.3/program&quot; to the VM options (I got this idea from here: http://www.oooforum.org/forum/viewtopic.phtml?t=40263 (mnasato explained the caveat of the pipe)). 3) Use juh.jar from the classes directory of ooBaseDirectory. 4) Use ridl.jar from the classes directory of ooBaseDirectory. 5) Don&#039;t use a pipe at all and use a socket connection (change the -accept option to &quot;-accept=socket,host=localhost,port=8100;urp;&quot; and the connection string to &quot;uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext&quot;). Using 1) OR 2) OR 3) OR 4) OR 5) does suffice. It is not necessary to combine several alternatives to get the modifications above working. My environment is OOo 2.3.1, Java 6 Update 4, NetBeans 6.0, Windows XP.]]></description>
		<content:encoded><![CDATA[<p>Hello Ichbinich, today I made the following observations, trying to get the above Bootstrap modifications working: First observation: Putting the JAR files juh.jar, jurt.jar, ridl.jar and unoil.jar into a directory outside OOo&#8217;s installation directory and modifying Bootstrap.java as written above does not suffice. My application terminated after executing &#8220;xUrlResolver.resolve(sConnect);&#8221;, too. Second observation: To get the modifications working is possible by using one of the following alternatives: 1) Put the ooBaseDirectory into the CLASSPATH. 2) Add -Djava.library.path=&#8221;C:/Programme/OpenOffice.org 2.3/program&#8221; to the VM options (I got this idea from here: <a href="http://www.oooforum.org/forum/viewtopic.phtml?t=40263" rel="nofollow">http://www.oooforum.org/forum/viewtopic.phtml?t=40263</a> (mnasato explained the caveat of the pipe)). 3) Use juh.jar from the classes directory of ooBaseDirectory. 4) Use ridl.jar from the classes directory of ooBaseDirectory. 5) Don&#8217;t use a pipe at all and use a socket connection (change the -accept option to &#8220;-accept=socket,host=localhost,port=8100;urp;&#8221; and the connection string to &#8220;uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext&#8221;). Using 1) OR 2) OR 3) OR 4) OR 5) does suffice. It is not necessary to combine several alternatives to get the modifications above working. My environment is OOo 2.3.1, Java 6 Update 4, NetBeans 6.0, Windows XP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ichbinich</title>
		<link>http://technology.amis.nl/2006/07/19/getting-started-with-the-openofficeorg-api-part-ii-starting-openofficeorg-with-jars-not-in-the-ooo-install-dir/#comment-3695</link>
		<dc:creator>Ichbinich</dc:creator>
		<pubDate>Sun, 03 Feb 2008 12:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1284#comment-3695</guid>
		<description><![CDATA[Hey.

After resolving all the errors by putting all the import things to the bootstrap I dont get an error in all my classes.

But when I now try to start the main class, the programm just terminates. I backtraced this with printStreams and the problem seems to be in this line:

267 Object context = xUrlResolver.resolve( sConnect );

in the bootstrap class. Something seems to be wrong with that line. Can you please give a hint how to solve this problem?
Thanks!]]></description>
		<content:encoded><![CDATA[<p>Hey.</p>
<p>After resolving all the errors by putting all the import things to the bootstrap I dont get an error in all my classes.</p>
<p>But when I now try to start the main class, the programm just terminates. I backtraced this with printStreams and the problem seems to be in this line:</p>
<p>267 Object context = xUrlResolver.resolve( sConnect );</p>
<p>in the bootstrap class. Something seems to be wrong with that line. Can you please give a hint how to solve this problem?<br />
Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
