Re: [dev] OpenOffice Integration

2009-12-30 Thread K S
Hi everybody,

Could you tell me please, what settings should I provide for OO (environment
variables, configuration files, etc.) to make it working in the context of
my application if I simply copying OO from its original installed location
on some computer to certain folder on other, or by using my own compilled
version without an installation? Thank you.

Kirill

2009/12/28 Juergen Schmidt juergen.schm...@sun.com

 Hi Kirill,

 it is already possible to have multiple instances of OOo on one computer.
 Your described scenario is also possible and you can manage your own copy of
 OOo in the context of your application. You can use your own application
 specific user directory, can control the life cycle and can connect to
 exactly your configured office from your own application.

 You can start the office listening on a specific pipe, connect your app to
 this pipe and everything else is the same as before. See the SDK examples
 how to connect to an office via a socket connection. Simply replace the
 socket connection with a pipe connection. See the DevGuide in the wiki for
 more details.

 Juergen



 On 12/28/09 12:06 PM, K S wrote:

 Dear OpenOffice Development,

 My name is Kirill, and I am Software Engineering Professional.

 Let me ask you several questions concerning integration of Open Office
 into
 my project.

 The matter is that I would like to call OpenOffice from my Java
 application.
 If there is no OpenOffice installed on the computer, I think it is good to
 run a copy of OpenOffice, supplied with my application. But As I know,
 OpenOffile under Linux can be started only if it was installed as a
 package.
 How it is possible to run OpenOffice using UNO without installing (merely
 copied OO to specified folder, for example)?  What about having several
 instances of Open Office at one time in the system? Thank you very much!


 Sincerely yours,
 Kirill



 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org




Re: [dev] OpenOffice Integration

2009-12-30 Thread Cor Nouws

Hi Kirill,

K S wrote (30-12-09 09:41)

Could you tell me please, what settings should I provide for OO (environment
variables, configuration files, etc.) to make it working in the context of
my application if I simply copying OO from its original installed location
on some computer to certain folder on other, or by using my own compilled
version without an installation? Thank you.


Sorry for not answering directly, but I know two sources of information:

http://wiki.services.openoffice.org/wiki/Documentation/Administration_Guide/Linux
http://wiki.services.openoffice.org/wiki/Run_OOo_versions_parallel

Best regards,
Cor


--
Cor Nouws
  - nl.OpenOffice.org marketing contact
  - Community Council member

 ?? Nieuwe office-software Zie www.nieuwsteoffice.nl !!


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OpenOffice Integration

2009-12-30 Thread Gert van Spijker

K S wrote:

Hi everybody,

Could you tell me please, what settings should I provide for OO (environment
variables, configuration files, etc.) to make it working in the context of
my application if I simply copying OO from its original installed location
on some computer to certain folder on other, or by using my own compilled
version without an installation? Thank you.
  
This is exactly what I need to do too. And I was googling all day 
yesterday to find documentation about how to set up a minimal bare bones 
oo writer installation and couldn't find anything. That's why I 
subscribed to this newsletter in the hope to find the information I need.
I have my own process that starts up a headless instance of writer to 
run a doc to pdf macro.
This already works, but I would like to provide a minimal installation 
inside my own software tree. I don't want my users to have to install a 
full version of Office, which installs a lot more than I need and 
creates registry entries all over the place.


I could do with a pointer to the right information too.

Thanks in advance,

Gert

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OpenOffice Integration

2009-12-30 Thread Gert van Spijker

Forgot to add that my system must run under windows.

Cheers,

Gert

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OpenOffice Integration

2009-12-30 Thread Cor Nouws

Gert van Spijker wrote (30-12-09 11:15)


I could do with a pointer to the right information too.


again the links:
http://wiki.services.openoffice.org/wiki/Documentation/Administration_Guide
http://wiki.services.openoffice.org/wiki/Run_OOo_versions_parallel

--
Cor Nouws
  - nl.OpenOffice.org marketing contact
  - Community Council member

 ?? Nieuwe office-software Zie www.nieuwsteoffice.nl !!


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OpenOffice Integration

2009-12-30 Thread K S
Dear Gert,

Under Windows you can use OpenOffice Portable:
http://www.keygiare.com/apps/office/openoffice_portable
It works without an installation

Sincerely yours,
Kirill

2009/12/30 Cor Nouws oo...@nouenoff.nl

 Gert van Spijker wrote (30-12-09 11:15)


  I could do with a pointer to the right information too.


 again the links:

 http://wiki.services.openoffice.org/wiki/Documentation/Administration_Guide
 http://wiki.services.openoffice.org/wiki/Run_OOo_versions_parallel

 --
 Cor Nouws
  - nl.OpenOffice.org marketing contact
  - Community Council member

  ?? Nieuwe office-software Zie www.nieuwsteoffice.nl !!


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org




[dev] OpenOffice Integration

2009-12-28 Thread K S
Dear OpenOffice Development,

My name is Kirill, and I am Software Engineering Professional.

Let me ask you several questions concerning integration of Open Office into
my project.

The matter is that I would like to call OpenOffice from my Java application.
If there is no OpenOffice installed on the computer, I think it is good to
run a copy of OpenOffice, supplied with my application. But As I know,
OpenOffile under Linux can be started only if it was installed as a package.
How it is possible to run OpenOffice using UNO without installing (merely
copied OO to specified folder, for example)?  What about having several
instances of Open Office at one time in the system? Thank you very much!


Sincerely yours,
Kirill


Re: [dev] OpenOffice Integration

2009-12-28 Thread Juergen Schmidt

Hi Kirill,

it is already possible to have multiple instances of OOo on one 
computer. Your described scenario is also possible and you can manage 
your own copy of OOo in the context of your application. You can use 
your own application specific user directory, can control the life cycle 
and can connect to exactly your configured office from your own application.


You can start the office listening on a specific pipe, connect your app 
to this pipe and everything else is the same as before. See the SDK 
examples how to connect to an office via a socket connection. Simply 
replace the socket connection with a pipe connection. See the DevGuide 
in the wiki for more details.


Juergen


On 12/28/09 12:06 PM, K S wrote:

Dear OpenOffice Development,

My name is Kirill, and I am Software Engineering Professional.

Let me ask you several questions concerning integration of Open Office into
my project.

The matter is that I would like to call OpenOffice from my Java application.
If there is no OpenOffice installed on the computer, I think it is good to
run a copy of OpenOffice, supplied with my application. But As I know,
OpenOffile under Linux can be started only if it was installed as a package.
How it is possible to run OpenOffice using UNO without installing (merely
copied OO to specified folder, for example)?  What about having several
instances of Open Office at one time in the system? Thank you very much!


Sincerely yours,
Kirill




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OpenOffice Integration

2009-12-28 Thread Konstantin Tokarev
Hi, Kirill

 OpenOffile under Linux can be started only if it was installed as a package.
 How it is possible to run OpenOffice using UNO without installing (merely
 copied OO to specified folder, for example)?  What about having several
 instances of Open Office at one time in the system? Thank you very much!

In case of deployment on Linux you can build a package with dependency on 
appropriate OOo package from distribution repositories. In this case user will 
not have two instances of OOo installed simultaneously
-- 
Regards,
Konstantin

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] OpenOffice Integration with Eclipse RCP Application

2006-02-06 Thread Kent Gibson
thanks. 

--- Oliver Brinzing [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
  I have an eclipse rcp app which uses Plugin A - my
  OpenOffice handling code and PlugIn B - My User
  Interface code which uses the Swt Bridge, Plugin C
 -
  My OpenOffice Lib ie all the classes and dll's,
 and
  other files openoffice needs.
 
 some time ago I had a similar problem:
 I tried to use a swt dialog from a oo component ...
 and found the following solution:
 
 First I added the eclipse rcp/swt jar files to the
 oo userClassPath (javasettings_Windows_x86.xml)
 
 userClassPath xsi:nil=false
 

D:\swt.win.runtime\org.eclipse.core.runtime_3.1.0.jar;
 
 D:\swt.win.runtime\org.eclipse.jface.text_3.1.0.jar;
   D:\swt.win.runtime\org.eclipse.jface_3.2.0.jar;
   D:\swt.win.runtime\org.eclipse.osgi_3.1.0.jar;
 

D:\swt.win.runtime\org.eclipse.swt.win32.win32.x86_3.1.0.jar
 /userClassPath
 
 and second I added D:\swt.win.runtime to the
 windows environment Path variable, otherwise
 the native swt dll's (swt-awt-win32-3201.dll,
 swt-win32-3201.dll, swt-gdip-win32-3201.dll) can't
 be
 found ...
 (I had to extract the dlls from the
 org.eclipse.swt.win32.win32.x86_3.1.0.jar file into
 D:\swt.win.runtime)
 
 it seems not to be possible to *extend* the
 java.library.path using the
 -Djava.library.path=D:\swt.win.runtime
 option inside the javasettings_Windows_x86.xml,
 afaik using this option will replace the current
 setting with
 your settings, and thats probably not what you want
 ...
 
 Oliver
 
 - --
 GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06
 4E2C AB40 CFD0 4A45
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.2 (MingW32)
 Comment: Using GnuPG with Mozilla -
 http://enigmail.mozdev.org
 

iD8DBQFD46wLTiyrQM/QSkURAmxLAJ9RBOMo9DjSnw0wgywmocnmGY5V1ACff860
 +UJPqIBmVZhrAnGMcxOSOSA=
 =DSVg
 -END PGP SIGNATURE-
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OpenOffice Integration with Eclipse RCP Application

2006-02-03 Thread Cedric Bosdonnat
Hi,

Kent Gibson a écrit :

 I need to access the Plugin C from my app, without
 using the the java.library.path property. OpenOffice
 seems to rely heavily on the java.library.path
 property, but when I set it at runtime it doesn't seem
 to make any difference. This whole thing only seems to
 work when the OpenOffice Lib is in a subdirectory of
 PlugIn A. 
 
 OpenOffice looks for the local library (Windows:
 officebean.dll, Unix: libofficebean.so) relative to
 the officebean.jar in the OfficePath/program
 directory. OpenOffice has some special class loading,
 which I can't get to work with Eclipse across multiple
 plugins.
 
 Does anyone have any pointers how I can this to work? 

In the Eclipse plugin for OOo Code support, I used a trickery: I created
 a Java application (packaged in a jar in my plugin) that handled OOo. I
just launched this application with Runtime.exec and the right
environment variables (LD_LIBRARY_PATH on Linux and PATH on Windows).

However, there should be other ways that I'm not aware of. If this
couldn't do your trick, I'm interested in any other solution to
dynmically set the java.library.path variable.

Hope that helps,
Cedric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OpenOffice Integration with Eclipse RCP Application

2006-02-03 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 I have an eclipse rcp app which uses Plugin A - my
 OpenOffice handling code and PlugIn B - My User
 Interface code which uses the Swt Bridge, Plugin C -
 My OpenOffice Lib ie all the classes and dll's, and
 other files openoffice needs.

some time ago I had a similar problem:
I tried to use a swt dialog from a oo component ... and found the following 
solution:

First I added the eclipse rcp/swt jar files to the oo userClassPath 
(javasettings_Windows_x86.xml)

userClassPath xsi:nil=false
D:\swt.win.runtime\org.eclipse.core.runtime_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.jface.text_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.jface_3.2.0.jar;
D:\swt.win.runtime\org.eclipse.osgi_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.swt.win32.win32.x86_3.1.0.jar
/userClassPath

and second I added D:\swt.win.runtime to the windows environment Path 
variable, otherwise
the native swt dll's (swt-awt-win32-3201.dll, swt-win32-3201.dll, 
swt-gdip-win32-3201.dll) can't be
found ...
(I had to extract the dlls from the org.eclipse.swt.win32.win32.x86_3.1.0.jar 
file into
D:\swt.win.runtime)

it seems not to be possible to *extend* the java.library.path using the
-Djava.library.path=D:\swt.win.runtime
option inside the javasettings_Windows_x86.xml, afaik using this option will 
replace the current
setting with
your settings, and thats probably not what you want ...

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD46wLTiyrQM/QSkURAmxLAJ9RBOMo9DjSnw0wgywmocnmGY5V1ACff860
+UJPqIBmVZhrAnGMcxOSOSA=
=DSVg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] OpenOffice Integration with Eclipse RCP Application

2006-02-02 Thread Kent Gibson
Hi-ya,

I am having a bit of a nightmare integrating
OpenOffice and any help would be great. 

Here is the scenario:

I have an eclipse rcp app which uses Plugin A - my
OpenOffice handling code and PlugIn B - My User
Interface code which uses the Swt Bridge, Plugin C -
My OpenOffice Lib ie all the classes and dll's, and
other files openoffice needs.

I need to access the Plugin C from my app, without
using the the java.library.path property. OpenOffice
seems to rely heavily on the java.library.path
property, but when I set it at runtime it doesn't seem
to make any difference. This whole thing only seems to
work when the OpenOffice Lib is in a subdirectory of
PlugIn A. 

OpenOffice looks for the local library (Windows:
officebean.dll, Unix: libofficebean.so) relative to
the officebean.jar in the OfficePath/program
directory. OpenOffice has some special class loading,
which I can't get to work with Eclipse across multiple
plugins.

Does anyone have any pointers how I can this to work? 

many thanks.

Sorry to be so verbose, however I can't find much info
about this. But I found someone who had what sounded
like a similiar problem with a OpenOffice and Java Web
Start (JNLP) Integration. I have copied it below:

Working around this constraint, I created a custom
ClassLoader (subclassing the java.net.URLClassLoader)
which will load all the JARs in the classes folder
(hard code the directory for now). Should work, won't
it? But no. Java Web Start uses a specialised
com.sun.jnlp.JNLPClassLoader, which does not bother
about the system classloader. This is to say that by
loading all the JARs via my custom ClassLoader does
not trigger JNLP's ClassLoader to pick them up. The
result - ClassNotFoundException. 

My next venture is to explicitly set the java.ext.dirs
property via the JNLP file, pointing it to the classes
folder and hoping the system class loaders will
automatically load all the JARs in it. Don't get me
wrong, as this approach works for a stand-alone GUI
application, but when run via Web Start, we now get a
different result - NoClassDefFoundException. 

In a desperate experiment, I tried to force the system
classloader to load these JARs, by force
introspection, using the URLClassLoader's addURL(URL)
method. Since this method is private, I had to use the
reflection API to invoke the method. Improvement here,
as the classes were finally picked up by JNLP, but
then comes a strage error - InvokationMethodException,
with a strange error message - This cannot happen. 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]