Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread Rony G. Flatscher
Hi Roderick,

> http://www.openoffice.org/issues/show_bug.cgi?id=54163 as mentioned in
> the Debian section of 
> http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE.pdf ?
>   
thank you for the links, and indeed, it seems that this is the same bug
(even 18 months later). [Will look into the version of "alien" that I
have used as the docs indicate (so it seems) that the bug should have
been removed after v8.50.]

Regards,

---rony


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



Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread G. Roderick Singleton
On Mon, 2007-02-12 at 15:57 +0100, Rony G. Flatscher wrote:
> >> O.K. it is 1,8 MB large, so I would not like to attach it to this
> >> e-mail. I can zip-it up and send it to you via direct e-mail, otherwise
> >> please advise.
> >
> > Only of interest are lines containing "log.txt".  Should be few enough
> > to post inline.  (Also, does an ls -l on that log.txt file show any
> > anomalies?)
> Ad "ls -l log.txt": just noticed that the owner and group is "root"! So
> here is the entire listing:
> 
> [EMAIL PROTECTED]:~/.openoffice.org2/user/uno_packages/cache$ ls -al
> insgesamt 32
> drwxr-xr-x 4 rony rony  4096 2007-02-12 13:18 .
> drwxr-xr-x 3 rony rony  4096 2007-01-20 22:41 ..
> -rw-r--r-- 1 root root   212 2007-02-04 12:46 log.txt
> drwxr-xr-x 6 root root  4096 2007-02-03 22:51 registry
> -rw-r--r-- 1 rony rony 1 2007-02-12 13:18 stamp
> drwxr-xr-x 2 root root  4096 2007-02-03 22:51 uno_packages
> -rw-r--r-- 1 root root 12288 2007-02-04 12:46 uno_packages.db
> [EMAIL PROTECTED]:~/.openoffice.org2/user/uno_packages/cache$ 
>   
> 
> Not sure, how this came into being though. Did a "normal" install (using
> alien to turn the rpm packages into deb ones and installing the deb
> packages)..
> 
> Changing owner and group to "rony" (recursively) solved the problem: all
> variants of unopkg as well as "Tools->Extension Manager" work now!
> 
> Regards,
> 
> ---rony
> 

Is it possible that you have fallen victim to
http://www.openoffice.org/issues/show_bug.cgi?id=54163 as mentioned in
the Debian section of 
http://documentation.openoffice.org/setup_guide2/2.x/en/SETUP_GUIDE.pdf ?

-- 
G. Roderick Singleton <[EMAIL PROTECTED]>
OpenOffice.org


smime.p7s
Description: S/MIME cryptographic signature


Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread Rony G. Flatscher

>> O.K. it is 1,8 MB large, so I would not like to attach it to this
>> e-mail. I can zip-it up and send it to you via direct e-mail, otherwise
>> please advise.
>
> Only of interest are lines containing "log.txt".  Should be few enough
> to post inline.  (Also, does an ls -l on that log.txt file show any
> anomalies?)
Ad "ls -l log.txt": just noticed that the owner and group is "root"! So
here is the entire listing:

[EMAIL PROTECTED]:~/.openoffice.org2/user/uno_packages/cache$ ls -al
insgesamt 32
drwxr-xr-x 4 rony rony  4096 2007-02-12 13:18 .
drwxr-xr-x 3 rony rony  4096 2007-01-20 22:41 ..
-rw-r--r-- 1 root root   212 2007-02-04 12:46 log.txt
drwxr-xr-x 6 root root  4096 2007-02-03 22:51 registry
-rw-r--r-- 1 rony rony 1 2007-02-12 13:18 stamp
drwxr-xr-x 2 root root  4096 2007-02-03 22:51 uno_packages
-rw-r--r-- 1 root root 12288 2007-02-04 12:46 uno_packages.db
[EMAIL PROTECTED]:~/.openoffice.org2/user/uno_packages/cache$ 
  

Not sure, how this came into being though. Did a "normal" install (using
alien to turn the rpm packages into deb ones and installing the deb
packages)..

Changing owner and group to "rony" (recursively) solved the problem: all
variants of unopkg as well as "Tools->Extension Manager" work now!

Regards,

---rony



Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread Stephan Bergmann

Rony G. Flatscher wrote:

Hi there,

Hm, if the error message tells the truth, there is some problem
accessing that log.txt file.  I assume you are on Linux; you could try

  strace -f ./unopkg gui

O.K. it is 1,8 MB large, so I would not like to attach it to this
e-mail. I can zip-it up and send it to you via direct e-mail, otherwise
please advise.


Only of interest are lines containing "log.txt".  Should be few enough 
to post inline.  (Also, does an ls -l on that log.txt file show any 
anomalies?)



and grep for log.txt on stderr to see if there are indeed any
problems.  (If a non-gui "./unopkg list" does not fail, similar data
for "strace -f ./unopkg list" would also be interesting.)

Running "./unopkg list" yields the same error it seems, whereas
"./unopkg list --shared" works. Again, if it helps to create anothe
strace for the failing version, please advise.


Ah, this difference caused by the --shared flag makes sense.  With 
--shared, probably a different log file (in the OOo share tree) is used.


-Stephan

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



Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread Rony G. Flatscher
Hi there,
> Hm, if the error message tells the truth, there is some problem
> accessing that log.txt file.  I assume you are on Linux; you could try
>
>   strace -f ./unopkg gui
O.K. it is 1,8 MB large, so I would not like to attach it to this
e-mail. I can zip-it up and send it to you via direct e-mail, otherwise
please advise.

> and grep for log.txt on stderr to see if there are indeed any
> problems.  (If a non-gui "./unopkg list" does not fail, similar data
> for "strace -f ./unopkg list" would also be interesting.)
Running "./unopkg list" yields the same error it seems, whereas
"./unopkg list --shared" works. Again, if it helps to create anothe
strace for the failing version, please advise.

---rony

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



Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread Stephan Bergmann

Rony G. Flatscher wrote:

Hi there,

sorry, was away for a week with no access to e-mail, hence my late answer:


[However, the Extension manager on the tools menu does not work
either in this version; it does from the commandline, though, ie.
"unopkg" works there.]

What is broken with the extension manager?

It does not come up (nor in the genuine OOo installation). I have Sun's
Java installed and activated. Will look into this once more to make
sure
that my scripts did not alter the standard installation.

You mean you select "Tools - Extension Manager" but no dialog
appears? That's strange.  It should not have anything to do with
Java.  Probably Joachim Lingner (jl at ooo) is interested in that, as
he maintains the extension manager.

The Extension Manager Dialog is contained in a service. This service
is used when starting the Etension Manager from the Tools menu or when
runngin unopkg gui. You mentioned that unopkg works, does that mean
unopkg add / remove works  and unopkg gui as well ?


O.K. unopkg runs in command line mode, but not in gui mode; running
"unopkg gui" yields:



Hm, if the error message tells the truth, there is some problem 
accessing that log.txt file.  I assume you are on Linux; you could try


  strace -f ./unopkg gui

and grep for log.txt on stderr to see if there are indeed any problems. 
 (If a non-gui "./unopkg list" does not fail, similar data for "strace 
-f ./unopkg list" would also be interesting.)


-Stephan

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



Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-12 Thread Rony G. Flatscher
Hi there,

sorry, was away for a week with no access to e-mail, hence my late answer:

> [However, the Extension manager on the tools menu does not work
> either in this version; it does from the commandline, though, ie.
> "unopkg" works there.]
 What is broken with the extension manager?
>>> It does not come up (nor in the genuine OOo installation). I have Sun's
>>> Java installed and activated. Will look into this once more to make
>>> sure
>>> that my scripts did not alter the standard installation.
>>
>> You mean you select "Tools - Extension Manager" but no dialog
>> appears? That's strange.  It should not have anything to do with
>> Java.  Probably Joachim Lingner (jl at ooo) is interested in that, as
>> he maintains the extension manager.
>
> The Extension Manager Dialog is contained in a service. This service
> is used when starting the Etension Manager from the Tools menu or when
> runngin unopkg gui. You mentioned that unopkg works, does that mean
> unopkg add / remove works  and unopkg gui as well ?

O.K. unopkg runs in command line mode, but not in gui mode; running
"unopkg gui" yields:



Hope that helps, regards,

---rony




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



Re: [dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-06 Thread Joachim Lingner

Stephan Bergmann wrote:

Rony G. Flatscher wrote:

Hi Stephan,

The Ubuntu layout you described in a previous mail (libs in
/usr/lib/openoffice/program, jars in /usr/share/java/openoffice)
cannot work (at least not without some modifications to the OOo code
base). Not sure why Ubuntu decided to ship a broken OOo (maybe they
are not even aware of it, maybe you can file them an issue).

Well, "ashok" seems to be able to deploy the Java program, if it is
embedded in a jar-file, it seems. So not sure yet, why it works there
and not here. Will have to look further into this.


[However, the Extension manager on the tools menu does not work
either in this version; it does from the commandline, though, ie.
"unopkg" works there.]

What is broken with the extension manager?

It does not come up (nor in the genuine OOo installation). I have Sun's
Java installed and activated. Will look into this once more to make sure
that my scripts did not alter the standard installation.


You mean you select "Tools - Extension Manager" but no dialog appears? 
That's strange.  It should not have anything to do with Java.  Probably 
Joachim Lingner (jl at ooo) is interested in that, as he maintains the 
extension manager.


The Extension Manager Dialog is contained in a service. This service is 
used when starting the Etension Manager from the Tools menu or when 
runngin unopkg gui. You mentioned that unopkg works, does that mean 
unopkg add / remove works  and unopkg gui as well ?


Joachim


-Stephan


Regards,

---rony


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



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



Re: [dev] SDK-only Java libs? (Re: [dev] Next .... (Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Stephan Bergmann

Rony G. Flatscher wrote:

Hi there,

just a stupid question: why doesn't the Bootstrap helper class use the
"com.sun.star.lib.loader." knowing the important role of that library to
find the OO executable ?


See  for a 
planned improvement in that area.


-Stephan


Regards,

---rony

[...]

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



[dev] Extension Manager [was: Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java]

2007-02-05 Thread Stephan Bergmann

Rony G. Flatscher wrote:

Hi Stephan,

The Ubuntu layout you described in a previous mail (libs in
/usr/lib/openoffice/program, jars in /usr/share/java/openoffice)
cannot work (at least not without some modifications to the OOo code
base). Not sure why Ubuntu decided to ship a broken OOo (maybe they
are not even aware of it, maybe you can file them an issue).

Well, "ashok" seems to be able to deploy the Java program, if it is
embedded in a jar-file, it seems. So not sure yet, why it works there
and not here. Will have to look further into this.


[However, the Extension manager on the tools menu does not work
either in this version; it does from the commandline, though, ie.
"unopkg" works there.]

What is broken with the extension manager?

It does not come up (nor in the genuine OOo installation). I have Sun's
Java installed and activated. Will look into this once more to make sure
that my scripts did not alter the standard installation.


You mean you select "Tools - Extension Manager" but no dialog appears? 
That's strange.  It should not have anything to do with Java.  Probably 
Joachim Lingner (jl at ooo) is interested in that, as he maintains the 
extension manager.


-Stephan


Regards,

---rony


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



Re: [dev] SDK-only Java libs? (Re: [dev] Next .... (Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi there,

just a stupid question: why doesn't the Bootstrap helper class use the
"com.sun.star.lib.loader." knowing the important role of that library to
find the OO executable ?

Regards,

---rony


>>> However, *where* would one find the "com.sun.star.lib.loader." package?
>>>   
>> Look in the SDK/classes directory...
>>
>> Get the SDK at api.openoffice.org
>> 
> Oh, I see. Was not aware of that at all.
>
> But this would mean that one cannot reliably deploy Java applications
> from the command line without that supporting library?
>
> If so, why not supply it with the general installation of OOo (putting
> that library into "OOoXYZ/classes" directory? It seems to me that that
> would be the appropriate place, which everyone then could rely to find it.
>
> Or with other words, distribute that jar as you distribute the juh.jar etc.
>
> ---
>
> And being there, why not fold juh.jar, etc. into *one* jar only?
>
> Regards,
>
> ---rony
>
>
>   



[dev] SDK-only Java libs? (Re: [dev] Next .... (Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi Jim,
>> However, *where* would one find the "com.sun.star.lib.loader." package?
> Look in the SDK/classes directory...
>
> Get the SDK at api.openoffice.org
Oh, I see. Was not aware of that at all.

But this would mean that one cannot reliably deploy Java applications
from the command line without that supporting library?

If so, why not supply it with the general installation of OOo (putting
that library into "OOoXYZ/classes" directory? It seems to me that that
would be the appropriate place, which everyone then could rely to find it.

Or with other words, distribute that jar as you distribute the juh.jar etc.

---

And being there, why not fold juh.jar, etc. into *one* jar only?

Regards,

---rony




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



Re: [dev] Next .... (Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Jim Watson

Rony G. Flatscher wrote:

However, *where* would one find the "com.sun.star.lib.loader." package?

Look in the SDK/classes directory...

Get the SDK at api.openoffice.org

jim

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



[dev] Next .... (Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi there,

thanks to everyone, I was not aware of special needs to find OOo. Ashok
was kind enough to send me his jar file, and its content is:
Archive:  helloworld.jar
testing: META-INF/OK
testing: META-INF/MANIFEST.MF OK
testing: org/ OK
testing: org/openoffice/  OK
testing: org/openoffice/helloworld/   OK
testing: org/openoffice/helloworld/helloworld.class   OK
testing: com/ OK
testing: com/sun/ OK
testing: com/sun/star/OK
testing: com/sun/star/lib/OK
testing: com/sun/star/lib/loader/   OK
testing:
com/sun/star/lib/loader/InstallationFinder$StreamGobbler.class   OK
testing: com/sun/star/lib/loader/InstallationFinder.class   OK
testing: com/sun/star/lib/loader/Loader$CustomURLClassLoader.class   OK
testing: com/sun/star/lib/loader/Loader.class   OK
testing: com/sun/star/lib/loader/WinRegKey.class   OK
testing: com/sun/star/lib/loader/WinRegKeyException.class   OK
testing: win/ OK
testing: win/unowinreg.dllOK
No errors detected in compressed data of helloworld.jar.

This matches Jürgen's explanations.

However, *where* would one find the "com.sun.star.lib.loader." package?
(Just did a grep over "OOHome/program/classes", but none of those
deployed jar would contain a class by that name.)

Regards,

---rony



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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Jim Watson

Rony G. Flatscher wrote:

See, I would like to learn what is needed for an "out-of-the-box" Ubuntu
OOo installation to be employed to run Java apps from the command line.
(Here SDK/NetBeans/Eclipse setups can come into ones way as it is then
not always clear which environment is in effect under which circumstances.)
  


Not using ubuntu, but I am interested in the environment variables too 
so I tried this on Mac OS, using no IDE and outside SDK.


These look like the minimal necessary steps. I did it using ant but 
there is nothing special in the build.xml file, so this should give 
enough clues for using a makefile or simple command line.


(a) make some directory, it could be anywhere but I used ~/test

(b) copy into ~/test the ant mybuild.xml file from 
SDK/examples/DevelopersGuide/FirstSteps/build_FirstUnoContact.xml


(c) put your java class file into ~/test. I used the mentioned 
CreateTextDocument.java but the contained class has to be made "public"


(d)in the mybuild.xml file replace all "FirstUnoContact" by 
"CreateTextDocument"


(e) copy the SDK/classes folder into ~/test
Some of the files in here are needed for the bootstrap loader

(f) the following environment variables may vary, these are only needed 
for the mybuild.xml file

OO_SDK_HOME=~/test 
OFFICE_HOME= 

(g) the following environment seems to be sufficient in any case, maybe 
not all necessary...

UNO_PATH=$OFFICE_HOME/program
OFFICE_PROGRAM_PATH=$OFFICE_HOME/program
DYLD_LIBRARY_PATH=$OFFICE_HOME/program:.:

Then at the command line
ant -f mybuild.xml

And it runs, no IDE, no SDK.


jim

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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread ashok _

i have sent you the project with the build scripts offlist...

but you dont need things like ld_library_path for the jar deploymet to
work... there is an installationfinder & loader packaged within the
jar which locates the openoffice installation and other arbitary paths
automatically which i why i was suggesting that you use the
netbeans plugin to build your project... it generates the neccessary
ant scripts ...

On 2/5/07, Rony G. Flatscher <[EMAIL PROTECTED]> wrote:


Could you please either send me the jar-file (or its included manifest
file) and the settings of CLASSPATH, PATH and LD_LIBRARY_PATH (from the
test machine)?

TIA,

---rony


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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Juergen Schmidt

Rony G. Flatscher wrote:

Hi,

In fact... officebean.jar is not required for the helloworld appit
was suggested by the netbeans wizard, but it will work without it

That is very interesting!

Could you please either send me the jar-file (or its included manifest
file) and the settings of CLASSPATH, PATH and LD_LIBRARY_PATH (from the
test machine)?


please stop the puzzling of arbitrary bits and bytes without the 
background knowledge. The next one use it a little bit different and it 
won't work again.


Always take a clean OO.org installation from the web side or an correct 
installed/deployed OO.org version from a distribution.


If you want to run a simply client application using the simple 
bootstrap mechanism you have to package the bootstrap helper class files 
and the winreg.dll (for real platform independence) with your 
application jar file and have to adapt the manifest file accordingly.


The NetBeans integration client wizard do exactly that. It simply 
package a correct jar file for a simple client application, nothing 
more. Ok, the wizard generates the bootstrap call in the main function, 
but that's it.
The bootstrap mechanism creates an own classloader with the necessary 
settings and instantiate the original main class with this new 
classloader. The default office is searched on the system and depending 
on the directory structure the necessary jar, executables ... are found 
and started. The office gets started and the client communicate over a 
named pipe connection with the office.


By using this mechanism you don't need a classpath or LD_LIBRARY_PATH. 
simply start your application with java -jar HelloWorld.jar.


Searching the default office is sometimes a little bit tricky. On 
windows we use the winreg.dll to read from the registry directly and on 
the Unix systems we searched in /usr/bin/ for the correct link (can't 
remember the exact search algorithm)


The bootstrap mechanism won't work when you copy the UNO jars form an 
office installation to somewhere else or when you deploy them with your 
application. Copy the jars make only sense when you want to connect to 
an office on a different machine and in this case you bootstrap a little 
bit different.


I agree that it is not 100% optimal and in an ideal world we would have 
the URE available in the system and the office would register all 
services there. We will see what we can provide in the future.


Juergen




TIA,

---rony

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



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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi Jürgen,
> the problem is quite simple. The Ubuntu guys install OpenOffice or
> part of it in a way which is not supported in all cases. For example
> the Java UNO bootstrap mechanism depends on a specific layout
> (directory structure, Stephan has pointed out earlier).
> And yes i agree that they probably don't test it at all. For some
> distributions (we had this problem before with Debian as well) it is
> enough when OO.org started and the UI appears correctly. You should
> submit an issue to Ubuntu and communicate the problem there.
O.K., will have a week's time (off-line) to look into this further to be
sure that it is really them.

It seems however that "ashok_" somehow is able to run the test program
from a jar (but am not sure why and how yet).

Regards,

---rony

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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi Stephan,
> The Ubuntu layout you described in a previous mail (libs in
> /usr/lib/openoffice/program, jars in /usr/share/java/openoffice)
> cannot work (at least not without some modifications to the OOo code
> base). Not sure why Ubuntu decided to ship a broken OOo (maybe they
> are not even aware of it, maybe you can file them an issue).
Well, "ashok" seems to be able to deploy the Java program, if it is
embedded in a jar-file, it seems. So not sure yet, why it works there
and not here. Will have to look further into this.

>> [However, the Extension manager on the tools menu does not work
>> either in this version; it does from the commandline, though, ie.
>> "unopkg" works there.]
>
> What is broken with the extension manager?
It does not come up (nor in the genuine OOo installation). I have Sun's
Java installed and activated. Will look into this once more to make sure
that my scripts did not alter the standard installation.

Regards,

---rony

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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi,
> In fact... officebean.jar is not required for the helloworld appit
> was suggested by the netbeans wizard, but it will work without it
That is very interesting!

Could you please either send me the jar-file (or its included manifest
file) and the settings of CLASSPATH, PATH and LD_LIBRARY_PATH (from the
test machine)?

TIA,

---rony

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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread ashok _

In fact... officebean.jar is not required for the helloworld appit
was suggested by the netbeans wizard, but it will work without it

On 2/5/07, Rony G. Flatscher <[EMAIL PROTECTED]> wrote:


One last remark: it is likely that your pacakge works because of
"officebean.jar".

But I would not want to be dependent on this jar-file as it mandates the
usage of OOo.



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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread ashok _

I tried executing the attached jar file on another ubuntu edgy  box
WITHOUT netbeans or the OO sdk...with just OO2.04 (the standard Ubuntu
openoffice installation) installed, it works perfectly, if i do either
: java -jar "helloworld.jar" or if do a launch with JVM from the Gnome
file manager...

the environment settings are that of an out of the box ubuntu edgy install



Ad your environment: it seems that you have the OOo SDK (and NetBeans)
at your disposal. The successful run from a packaged jar-file is
interesting: if possible, could you supply the jar as well your
environment settings in the command line window in which you are able to
run the app successfully?


As you can see my development box has a different setup, and the test
box has the standard ubuntu setup it works fine in both


See, I would like to learn what is needed for an "out-of-the-box" Ubuntu
OOo installation to be employed to run Java apps from the command line.
(Here SDK/NetBeans/Eclipse setups can come into ones way as it is then
not always clear which environment is in effect under which circumstances.)



helloworld.jar
Description: application/jar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi,
> these were the required jar files suggested by netbeans:  (i noticed
> you didnt mention  jut.jar in the comments of your code)
>
> juh.jar
> jurt.jar
> jut.jar
> officebean.jar
> ridl.jar
> unoil.jar
One last remark: it is likely that your pacakge works because of
"officebean.jar".

But I would not want to be dependent on this jar-file as it mandates the
usage of OOo.

The solution should be genuine such that only the Java-UNO-interface is
necessary (mostly acquiring the OOo components, but since URE has been
existing, the solution should be standard), as is the case with the
genuine OOo installation from the OOo web site.

Or with other words: you should be able to execute the compiled Java
class from the commandline by issuing "java helloworld". If you can make
this work with the Ubuntu OOo installation, then I would be very
thankful, if you could share the environment setting of that command
line window.

Regards,

---rony


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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Rony G. Flatscher
Hi,
> these were the required jar files suggested by netbeans: (i noticed
> you didnt mention  jut.jar in the comments of your code)
>
> juh.jar
> jurt.jar
> jut.jar
> officebean.jar
> ridl.jar
> unoil.jar
Thank you for this list, will look into it!

---

Ad your environment: it seems that you have the OOo SDK (and NetBeans)
at your disposal. The successful run from a packaged jar-file is
interesting: if possible, could you supply the jar as well your
environment settings in the command line window in which you are able to
run the app successfully?

See, I would like to learn what is needed for an "out-of-the-box" Ubuntu
OOo installation to be employed to run Java apps from the command line.
(Here SDK/NetBeans/Eclipse setups can come into ones way as it is then
not always clear which environment is in effect under which circumstances.)

TIA,

---rony

P.S.: Will be a week off (practically without e-mail or WWW access), so
I may be able to come back only in a week or so.


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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Juergen Schmidt

Hi Rony,

Rony G. Flatscher wrote:

Hi there,

just wanted to report that the genuine OOo 2.1 can be invoked via Java
from the command line, whereas the Ubuntu version cannot.

Did remove the genuine OOo 2.1 and re-installed the Ubuntu OOo 2.0.4
version (the latest they have). The Ubuntu version places the binaries
into /usr/lib/openoffice/program and the Java support to
/usr/share/java/openoffice. Setting CLASSPATH and LD_LIBRARY_PATH+PATH
to their respective settings does throw a
com.sun.star.comp.helper.BootstrapException (bootstrap cannot find
office executable).

Could it be that they have no test case for running OOo from the
commandline using Java ? Could that really be the case?? Or is there
something that I might still oversee, which is important for the Ubuntu
version but not for the genuine OOo distribution?

Regards,


the problem is quite simple. The Ubuntu guys install OpenOffice or part 
of it in a way which is not supported in all cases. For example the Java 
UNO bootstrap mechanism depends on a specific layout (directory 
structure, Stephan has pointed out earlier).
And yes i agree that they probably don't test it at all. For some 
distributions (we had this problem before with Debian as well) it is 
enough when OO.org started and the UI appears correctly. You should 
submit an issue to Ubuntu and communicate the problem there.


Juergen




---rony


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



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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-05 Thread Stephan Bergmann

Rony G. Flatscher wrote:

Hi Caio Tiago,

thank you *very* much, your directions worked right "out of the book"! ;)

First I deinstalled the Ubuntu OOo, then followed your instructions and
was able to install the genuine OOo from the OOo homepage, getting the
standard installation tree on the /opt branch.

Could get the Java program to run from the command line, ie.
bootstrapping OOo worked!


The Ubuntu layout you described in a previous mail (libs in 
/usr/lib/openoffice/program, jars in /usr/share/java/openoffice) cannot 
work (at least not without some modifications to the OOo code base). 
Not sure why Ubuntu decided to ship a broken OOo (maybe they are not 
even aware of it, maybe you can file them an issue).



[However, the Extension manager on the tools menu does not work either
in this version; it does from the commandline, though, ie. "unopkg"
works there.]


What is broken with the extension manager?


Again, thank you *very* much for your kind and exact help!

---rony

P.S.: Will take another look into the OOo installation as coming from
Ubuntu (also Suse, I found out).


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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread ashok _

these were the required jar files suggested by netbeans:
(i noticed you didnt mention  jut.jar in the comments of your code)

juh.jar
jurt.jar
jut.jar
officebean.jar
ridl.jar
unoil.jar


On 2/5/07, ashok _ <[EMAIL PROTECTED]> wrote:

Hello Rony:

I used your code to successfully build and execute an openoffice UNO
client application.
(See the attached code).

i executed the jar file from the command line using:
java -jar "helloworld.jar"
and it launched openoffice writer and wrote the hellow world text into
the editor windwo

I am running ubuntu edgy, openoffice 2.1 , openoffice 2.1 SDK (in
/opt/openoffice.org2.1_sdk), jdk 1.5.08

I built the code using Netbeans (using the openoffice wizard, by
choosing OpenOffice UNO/Client Application as the project option).



On 2/5/07, Rony G. Flatscher <[EMAIL PROTECTED]> wrote:
> Hi,
>
> ashok _ wrote:
> > I am running oOo 2.1 on ubuntu...
> >
> > I am running the standard jdk 1.5.08 installation... everything works
> > fine for me.
> >
> > I noticed that i had to explicitly enable Java in oOo after the
> > installation, by going to tools->options->java and expicitly selecting
> > a JVM there
> > maybe that is the step you are missing?
> This seems to be necessary only, if Java is invoked from OpenOffice
> itself (either via the scripting framework, or because of using a Java
> UNO component, etc.).
>
> If one is using Java from the "outside" of OOo then that version of Java
> is used to drive OOo. One could set up different vesions of Java and use
> them to interface with OOo (as a matter of fact I have Java 1.1, 1.2,
> 1.3, 1.4, 1.5 and 1.6 on my machine, using 1.4 through 1.6 when running
> against OOo).
>
> ---
>
> So the question would be for me whether you are able to compile and run
> the enclosed Java program from the *command* line (not NetBeans, Eclipse
> etc.) under Ubuntu's OOo? If so, I would be *very* interested in your
> environment settings!
>
> TIA,
>
> ---rony
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>





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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread ashok _

Hello Rony:

I used your code to successfully build and execute an openoffice UNO
client application.
(See the attached code).

i executed the jar file from the command line using:
java -jar "helloworld.jar"
and it launched openoffice writer and wrote the hellow world text into
the editor windwo

I am running ubuntu edgy, openoffice 2.1 , openoffice 2.1 SDK (in
/opt/openoffice.org2.1_sdk), jdk 1.5.08

I built the code using Netbeans (using the openoffice wizard, by
choosing OpenOffice UNO/Client Application as the project option).



On 2/5/07, Rony G. Flatscher <[EMAIL PROTECTED]> wrote:

Hi,

ashok _ wrote:
> I am running oOo 2.1 on ubuntu...
>
> I am running the standard jdk 1.5.08 installation... everything works
> fine for me.
>
> I noticed that i had to explicitly enable Java in oOo after the
> installation, by going to tools->options->java and expicitly selecting
> a JVM there
> maybe that is the step you are missing?
This seems to be necessary only, if Java is invoked from OpenOffice
itself (either via the scripting framework, or because of using a Java
UNO component, etc.).

If one is using Java from the "outside" of OOo then that version of Java
is used to drive OOo. One could set up different vesions of Java and use
them to interface with OOo (as a matter of fact I have Java 1.1, 1.2,
1.3, 1.4, 1.5 and 1.6 on my machine, using 1.4 through 1.6 when running
against OOo).

---

So the question would be for me whether you are able to compile and run
the enclosed Java program from the *command* line (not NetBeans, Eclipse
etc.) under Ubuntu's OOo? If so, I would be *very* interested in your
environment settings!

TIA,

---rony



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



/*
 * helloworld.java
 *
 * Created on 05.01.2007 - 09:59:46
 *
 */

package org.openoffice.helloworld;

import com.sun.star.uno.XComponentContext;
import com.sun.star.comp.helper.Bootstrap;

/**
 *
 * @author administrator
 */
public class helloworld {

/** Creates a new instance of helloworld */
public helloworld() {
}

/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
try {
// get the remote office component context
XComponentContext xContext = Bootstrap.bootstrap();
com.sun.star.frame.XDesktop xDesktop = null;
com.sun.star.lang.XMultiComponentFactory xMCF = null;


// (2) get the service manager
xMCF = xContext.getServiceManager();
if( xMCF != null ) {
System.out.println("Connected to a running office ...");

// (3) start up an instance of office
Object oDesktop = xMCF.createInstanceWithContext(
"com.sun.star.frame.Desktop", xContext);

// (4a) get the XDesktop interface object
xDesktop = (com.sun.star.frame.XDesktop)
com.sun.star.uno.UnoRuntime.queryInterface(
com.sun.star.frame.XDesktop.class, oDesktop);

// (4b) get the desktop's component loader interface object
com.sun.star.frame.XComponentLoader xComponentLoader =
(com.sun.star.frame.XComponentLoader)
com.sun.star.uno.UnoRuntime.queryInterface(
com.sun.star.frame.XComponentLoader.class, xDesktop);

// create an empty text ("swriter") document
com.sun.star.beans.PropertyValue xEmptyArgs[] = // empty property array
new com.sun.star.beans.PropertyValue[0];

// (5) create an empty word processor ("swriter") component (document)
com.sun.star.lang.XComponent xComponent = 
xComponentLoader.loadComponentFromURL( "private:factory/swriter","_blank",
   0, xEmptyArgs);

// (6) get Text interface object and set a text
com.sun.star.text.XTextDocument xTextDocument =
(com.sun.star.text.XTextDocument)
com.sun.star.uno.UnoRuntime.queryInterface(
com.sun.star.text.XTextDocument.class, xComponent);

com.sun.star.text.XText xText = xTextDocument.getText();

// ((com.sun.star.text.XTextRange) xText).setString("Java was here!\r---rgf");
xText.setString("Java was here!\r---rgf");
}



}
catch (java.lang.Exception e){
e.printStackTrace();
}
System.exit( 0 );
}

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

Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread Rony G. Flatscher
Hi,
> I noticed you were setting a whole lot of classpaths
>
> i would suggest you get hold of netbeans 6 milestone 5 IDE,  and
> install the openoffice development plugin on top of that.  It takes  a
> lot of pain out of the openoffice development process.by detecting
> and setting up environment variables and so on
The challenge at the moment for me is to find out what environment
setting is necessary to drive OOo via Java from the commandline (i.e.
becoming able to bootstrap OOo and then control it from Java).

Regards,

---rony

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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread Rony G. Flatscher
Hi,

ashok _ wrote:
> I am running oOo 2.1 on ubuntu...
>
> I am running the standard jdk 1.5.08 installation... everything works
> fine for me.
>
> I noticed that i had to explicitly enable Java in oOo after the
> installation, by going to tools->options->java and expicitly selecting
> a JVM there
> maybe that is the step you are missing?
This seems to be necessary only, if Java is invoked from OpenOffice
itself (either via the scripting framework, or because of using a Java
UNO component, etc.).

If one is using Java from the "outside" of OOo then that version of Java
is used to drive OOo. One could set up different vesions of Java and use
them to interface with OOo (as a matter of fact I have Java 1.1, 1.2,
1.3, 1.4, 1.5 and 1.6 on my machine, using 1.4 through 1.6 when running
against OOo).

---

So the question would be for me whether you are able to compile and run
the enclosed Java program from the *command* line (not NetBeans, Eclipse
etc.) under Ubuntu's OOo? If so, I would be *very* interested in your
environment settings!

TIA,

---rony



CreateTextDocument.java
Description: java/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread ashok _

I noticed you were setting a whole lot of classpaths

i would suggest you get hold of netbeans 6 milestone 5 IDE,  and
install the openoffice development plugin on top of that.  It takes  a
lot of pain out of the openoffice development process.by detecting
and setting up environment variables and so on

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



Re: [dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread ashok _

I am running oOo 2.1 on ubuntu...

I am running the standard jdk 1.5.08 installation... everything works
fine for me.

I noticed that i had to explicitly enable Java in oOo after the
installation, by going to tools->options->java and expicitly selecting
a JVM there

maybe that is the step you are missing?

On 2/4/07, Rony G. Flatscher <[EMAIL PROTECTED]> wrote:

Hi there,

just wanted to report that the genuine OOo 2.1 can be invoked via Java
from the command line, whereas the Ubuntu version cannot.

Did remove the genuine OOo 2.1 and re-installed the Ubuntu OOo 2.0.4
version (the latest they have). The Ubuntu version places the binaries
into /usr/lib/openoffice/program and the Java support to
/usr/share/java/openoffice. Setting CLASSPATH and LD_LIBRARY_PATH+PATH
to their respective settings does throw a
com.sun.star.comp.helper.BootstrapException (bootstrap cannot find
office executable).

Could it be that they have no test case for running OOo from the
commandline using Java ? Could that really be the case?? Or is there
something that I might still oversee, which is important for the Ubuntu
version but not for the genuine OOo distribution?

Regards,

---rony


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




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



[dev] Little update (Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread Rony G. Flatscher
Hi there,

just wanted to report that the genuine OOo 2.1 can be invoked via Java
from the command line, whereas the Ubuntu version cannot.

Did remove the genuine OOo 2.1 and re-installed the Ubuntu OOo 2.0.4
version (the latest they have). The Ubuntu version places the binaries
into /usr/lib/openoffice/program and the Java support to
/usr/share/java/openoffice. Setting CLASSPATH and LD_LIBRARY_PATH+PATH
to their respective settings does throw a
com.sun.star.comp.helper.BootstrapException (bootstrap cannot find
office executable).

Could it be that they have no test case for running OOo from the
commandline using Java ? Could that really be the case?? Or is there
something that I might still oversee, which is important for the Ubuntu
version but not for the genuine OOo distribution?

Regards,

---rony


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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread Rony G. Flatscher
Hi Jim,
> You should get the Software Development Kit from your distribution or
> from http://api.openoffice.org, there are examples in
> SDK/examples/DevelopersGuide/FirstSteps
This assumes, that the Java program I use would not work. However, it is
a simple test-program which has been working like a charm, and which I
have been using to make sure that the environment for Java is set up
correctly, such that I am assured that problems in developing apps do
not stem from a wrong environment.

---

Caio Tiago Oliveria hit the nail right on the top and I could
successfully get and install the "genuine" OOo from the OOo homepage
(kudos to him) !

Regards,

---rony



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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-04 Thread Rony G. Flatscher
Hi Caio Tiago,

thank you *very* much, your directions worked right "out of the book"! ;)

First I deinstalled the Ubuntu OOo, then followed your instructions and
was able to install the genuine OOo from the OOo homepage, getting the
standard installation tree on the /opt branch.

Could get the Java program to run from the command line, ie.
bootstrapping OOo worked!

[However, the Extension manager on the tools menu does not work either
in this version; it does from the commandline, though, ie. "unopkg"
works there.]

Again, thank you *very* much for your kind and exact help!

---rony

P.S.: Will take another look into the OOo installation as coming from
Ubuntu (also Suse, I found out).


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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-03 Thread Caio Tiago Oliveira

Jim Watson, 03-02-2007 20:27:


On 04/02/2007, at 9:45 AM, Rony G. Flatscher wrote:



would allow a Java program to start to run, but getting immediately to a
problem in the Bootstrap class which is not able to find the OOo binary:

com.sun.star.comp.helper.BootstrapException: no office executable 
found!

at com.sun.star.comp.helper.Bootstrap.bootstrap (Bootstrap.java)
at CreateTextDocument.main(CreateTextDocument.java:23)



You should get the Software Development Kit from your distribution or 
from http://api.openoffice.org, there are examplesin


SDK/examples/DevelopersGuide/FirstSteps

Also, the package manager via OOo (Tools -> Package Manager) does not 
run.

Maybe someone could hint what the problem might be?


Hint: OOo2.3 is nearly ready to be released



2.2... I'm pretty sure you meant it.


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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-03 Thread Jim Watson


On 04/02/2007, at 9:45 AM, Rony G. Flatscher wrote:



would allow a Java program to start to run, but getting immediately  
to a
problem in the Bootstrap class which is not able to find the OOo  
binary:


com.sun.star.comp.helper.BootstrapException: no office  
executable found!
at com.sun.star.comp.helper.Bootstrap.bootstrap 
(Bootstrap.java)

at CreateTextDocument.main(CreateTextDocument.java:23)



You should get the Software Development Kit from your distribution or  
from http://api.openoffice.org, there are examplesin


SDK/examples/DevelopersGuide/FirstSteps

Also, the package manager via OOo (Tools -> Package Manager) does  
not run.

Maybe someone could hint what the problem might be?


Hint: OOo2.3 is nearly ready to be released

Check the jre is installed in Tools - Options - Openoffice.org - Java


Also, is there an official OOo distribution for Debian/Ubuntu  
(expecting
not to run into such problems with it)? Or is there another  
possibility

to install the official OOo distribution on Ubuntu/Debian?


On debian this will reveal available packages that you can apt-get:
$ apt-cache search openoffice

For experimenting you can install the OOo rpm packages into your home  
directory using the script on mirrors, just google for  
"openoffice.org/developer/install_scripts" to get an idea.


jim

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



Re: [dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-03 Thread Caio Tiago Oliveira

Rony G. Flatscher, 03-02-2007 19:45:


while evaluating Ubuntu (6.10, very impressive laptop installation,
better than Windows XP for the first time!) I have been experimenting
with OOo on that platform, which seems to be an Ubuntu installation of
OOo, version 2.0.4 ("openoffice.org 2.0.4-0ubuntu4, Wed Dec 20 22:25:13
UTC 2006").

[...]
Also, the package manager via OOo (Tools -> Package Manager) does not run.

---

Maybe someone could hint what the problem might be?

Also, is there an official OOo distribution for Debian/Ubuntu (expecting
not to run into such problems with it)? Or is there another possibility
to install the official OOo distribution on Ubuntu/Debian?



Well... you should try the official OOo before all.

You might to download the package, extract it, use alien to convert the 
RPMs to debs, then use dpkg to install.


tar vxzf OOo.tar.gz
cd OOo/RPMS

fakeroot alien *rpm
or become root and:
alien *rpm

dpkg -i *deb
cd desktop-integration
dpkg -i *deb

Then try it again and let us know.

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



[dev] Seeking help on Ubuntu 6.10 OOo v. 2.0.4 for starting OOo via Java

2007-02-03 Thread Rony G. Flatscher
Hi there,

while evaluating Ubuntu (6.10, very impressive laptop installation,
better than Windows XP for the first time!) I have been experimenting
with OOo on that platform, which seems to be an Ubuntu installation of
OOo, version 2.0.4 ("openoffice.org 2.0.4-0ubuntu4, Wed Dec 20 22:25:13
UTC 2006").

The OOo binaries and DLLs are installed in
"/usr/lib/openoffice/program", whereas the OOo Java classes are
installed in "/usr/share/java/openoffice". Setting the PATH (and
LD_LIBRARY_PATH) to point to "/usr/lib/openoffice/program" and CLASSPATH to

OOO_jars=/usr/share/java/openoffice
export

CLASSPATH=$CLASSPATH:$OOO_jars/jurt.jar:$OOO_jars/unoil.jar:$OOO_jars/ridl.jar:$OOO_jars/juh.jar:$OOO_jars/sandbox.jar

would allow a Java program to start to run, but getting immediately to a
problem in the Bootstrap class which is not able to find the OOo binary:

com.sun.star.comp.helper.BootstrapException: no office executable found!
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java)
at CreateTextDocument.main(CreateTextDocument.java:23)

The installed Java is "Sun Microsystems Inc. 1.5.0_08". [Can take full
advantage of Java from non-OOo programs, so this installation seems to
be o.k.]
"/usr/bin" is on the PATH as well and there is an "/usr/bin/openoffice"
(which links to "/usr/bin/ooo-wrapper").

---

Also, the package manager via OOo (Tools -> Package Manager) does not run.

---

Maybe someone could hint what the problem might be?

Also, is there an official OOo distribution for Debian/Ubuntu (expecting
not to run into such problems with it)? Or is there another possibility
to install the official OOo distribution on Ubuntu/Debian?

TIA,

---rony
P.S.: In case it matters, the exports in effect:

declare -x

CLASSPATH="/mnt/hgfs/root_e/rony/dev/bsf/src/bsf4rexx/bsf-rexx-engine.jar:/mnt/hgfs/root_e/rony/dev/bsf/src/bsf4rexx/bsf-v242-20070128.jar:.:::/usr/share/java/openoffice/jurt.jar:/usr/share/java/openoffice/unoil.jar:/usr/share/java/openoffice/ridl.jar:/usr/share/java/openoffice/juh.jar:/usr/share/java/openoffice/sandbox.jar"
declare -x COLORTERM="gnome-terminal"
declare -x

DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-yKyiMSoR85,guid=d601c5450f319a46d8ab3fa8989d0900"
declare -x DESKTOP_SESSION="default"
declare -x DESKTOP_STARTUP_ID=""
declare -x DISPLAY=":0.0"
declare -x GDMSESSION="default"
declare -x GDM_XSERVER_LOCATION="local"
declare -x GNOME_DESKTOP_SESSION_ID="Default"
declare -x GNOME_KEYRING_SOCKET="/tmp/keyring-DeCPdn/socket"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/rony/.gtkrc-1.2-gnome2"
declare -x HISTCONTROL="ignoredups"
declare -x HOME="/home/rony"
declare -x LANG="de_AT.UTF-8"
declare -x

LD_LIBRARY_PATH="/usr/lib/openoffice/program:/mnt/hgfs/root_e/rony/dev/bsf/src/bsf4rexx:"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="rony"
declare -x

LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:"
declare -x
OLDPWD="/mnt/hgfs/root_e/rony/dev/bsf/src/bsf4rexx/samples/OOo"
declare -x

PATH="/usr/lib/openoffice/program:/mnt/hgfs/root_e/rony/dev/bsf/src/bsf4rexx:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
declare -x
PWD="/mnt/hgfs/root_e/rony/dev/bsf/src/bsf4rexx/samples/OOo/javaExample"
declare -x SESSION_MANAGER="local/rony-ubuntu:/tmp/.ICE-unix/4464"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AGENT_PID="4504"
declare -x SSH_AUTH_SOCK="/tmp/ssh-ZVfZUM4464/agent.4464"
declare -x TERM="xterm"
declare -x USER="rony"
declare -x USERNAME="rony"
declare -x WINDOWID="39845982"
declare -x XAUTHORITY="/home/rony/.Xauthority"

P.P.S.: Could not find anything via Google and the Ubuntu/Wiki.