Re: [dev] Opening SXW files with OOo2.x

2008-06-19 Thread Tobias Krais
Hi Juergen,

 it sounds strange and we should analyze the problems. Can you submit an
 issue (component writer, sw) with an example sxw document attached. As
 far as i know no such problems are known so far and it would be
 interesting to know what happens.

Sorry for the delay. I was in holidays. I analysed the problem and
submitted a bug: http://www.openoffice.org/issues/show_bug.cgi?id=90872

The reason of the defect was: OOo 1.1.4 created some documents without a
/META-INF/manifest.xml. These documents were not opened correctly with
OOo 2.4. Thus my colleague copied a manifest.xml file in some of the
documents. By doing this the formatting was gone in documents where the
manifest.xml file was wrong. The submitted bug is very instersting.

Thanks all for the comments and help.

Greetings, Tobias

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



[dev] Opening SXW files with OOo2.x

2008-05-21 Thread Tobias Krais
Hi together,

we just upgraded from OOo 1.1.4 to OOo 2.4. Our documents are all sxw
documents. Some customers claim, that the formatting is now different
My question: does OOo illustrate / display sxw files as OOo 1.1.x does?
Or are there differences?

If there are differences, is there a way to to open the files as they
have been displayed in OOo 1.1.4?

Thank you in advance.

Greetings, Tobias

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



Re: [dev] Opening SXW files with OOo2.x

2008-05-21 Thread Tobias Krais
Hi Cor,

 Sounds as question for users@ ...

Thanks for redirecting.

 Have you looked at Tools|Options|Writer|Compatability?

I did so. Using the defaults works best. Normally...

Greetings, Tobias

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



Re: [dev] Opening SXW files with OOo2.x

2008-05-21 Thread Tobias Krais
Hi Cor,

 OK, so despite of these settings, differences remain?
 In that case, I take back my redirection to users@ ;-)

I have big troubles here. Our customer has a lot of defect documents
that open like a charm on OOo 1.1.4. With OOo 2.4, the documents must be
repaired first. Looking at the contents of the defect sxw document, I
see that e.g. the manifest.xml file is missing. The reason why I am
asking this question is, that I want to know the reason for the bad
formatting. Is it due to the repair process, or are there general
problems known.

Greetings, Tobias

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



Re: [dev] Opening SXW files with OOo2.x

2008-05-21 Thread Tobias Krais
Hi Juergen

 it sounds strange and we should analyze the problems. Can you submit an
 issue (component writer, sw) with an example sxw document attached. As
 far as i know no such problems are known so far and it would be
 interesting to know what happens.

thanks for the offer. Currently I try to analyse what happens. In case I
find a reason or some information, I will submit an issue and post it here.

Greetings, Tobias

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



[dev] Opening SXW files with OOo2.x

2008-05-21 Thread Tobias Krais
Hi together,

we just upgraded from OOo 1.1.4 to OOo 2.4. Our documents are all sxw
documents. Some customers claim, that the formatting is now different
My question: does OOo illustrate / display sxw files as OOo 1.1.x does?
Or are there differences?

If there are differences, is there a way to to open the files as they
have been displayed in OOo 1.1.4?

Thank you in advance.

Greetings, Tobias

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



Re: [dev] [SOLVED] Changing the default Java for OOo from command line

2006-07-04 Thread Tobias Krais
Hi Joachim,

 OK. I used:
 -%-

 export UNO_JAVA_JFW_ENV_CLASSPATH=/usr/lib/openoffice/program/classes/j
 urt.jar;/usr/lib/openoffice/program/classes/ridl.jar;/usr/lib/openoffice/program

 /classes/java_uno.jar;/usr/lib/openoffice/program/classes/juh.jar;/usr/lib/openo

 ffice/program/classes/jut.jar;/usr/lib/openoffice/program/classes/unoidl.jar

 UNO_JAVA_JFW_ENV_CLASSPATH can be set to true which indicates that
 CLASSPATH is used.

because this does not work I found a workaround. Before installing the
UNO package, I correct the
/usr/lib/openoffice/share/config/javavendors.xml to following:
-%-
?xml version=1.0 encoding=UTF-8?

javaSelection xmlns=http://openoffice.org/2004/java/framework/1.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 updated2004-01-30/updated

 vendorInfos
  vendor name=Sun Microsystems Inc.
minVersion1.5.0/minVersion
  /vendor
 /vendorInfos

 plugins
  library vendor=Sun Microsystems Inc.sunjavaplugin.so/library
 /plugins
/javaSelection
-%-

Thus OOo selects automatically the Sun JRE even if the user used another
JRE before :-).

Joachim, without your hints I would not have found this workaround!
Thanks for your time and help.

Greetings, Tobias

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



Re: [dev] [SOLVED] Linux: Deploying a UNO Package for all users on PC

2006-07-04 Thread Tobias Krais
Hi Matthias and Steffen,

 just add --shared-Option as described:

must have been blind... I read this often before. Sorry but thanks a lot!

Greetings, Tobias

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



Re: [dev] [SOLVED] Changing the default Java for OOo from command line

2006-07-04 Thread Tobias Krais
Hi Joachim,

 Good to know that it works for you now. By the way I filed issue 66769
 to investigate the use of bootstrap variables with unopkg

thanks a lot! I voted for it and attached the link to this thread.

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-27 Thread Tobias Krais
Hi Joachim,

 unopkg does not seem to accept bootstrap variables on the command line.
 This could be a bug. You could still set the variable as environment
 variable. For example
 setenv  UNO_JAVA_JFW_JREHOME file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
 
 unopkg add ...

OK. I used:
-%-
export UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-1.5.0-s
un-1.5.0.06/

export UNO_JAVA_JFW_CLASSPATH=/usr/lib/openoffice/program/classe
s/jurt.jar;/usr/lib/openoffice/program/classes/ridl.jar;/usr/lib/openoffice/prog
ram/classes/java_uno.jar;/usr/lib/openoffice/program/classes/juh.jar;/usr/lib/op
enoffice/program/classes/jut.jar;/usr/lib/openoffice/program/classes/unoidl.jar

export UNO_JAVA_JFW_ENV_CLASSPATH=/usr/lib/openoffice/program/classes/j
urt.jar;/usr/lib/openoffice/program/classes/ridl.jar;/usr/lib/openoffice/program
/classes/java_uno.jar;/usr/lib/openoffice/program/classes/juh.jar;/usr/lib/openo
ffice/program/classes/jut.jar;/usr/lib/openoffice/program/classes/unoidl.jar

unopkg add ./CVS-Temp/OOComNG/oocom/unopkg/JudasSaveToComponent.uno.pkg

ERROR: (com.sun.star.uno.RuntimeException) { { Message = [jni_uno
bridge error] UNO calling Java method initialize: non-UNO exception
occurred: java.lang.UnsatisfiedLinkError: dispatch_call\X000ajava stack
trace:\X000ajava.lang.UnsatisfiedLinkError: dispatch_call\X000a\X0009at
com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native
Method)\X000a\X0009at
com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java)\X000a\X0009at
$Proxy3.queryInterface(Unknown Source)\X000a\X0009at
com.sun.star.uno.UnoRuntime.queryInterface(UnoRuntime.java)\X000a\X0009at
com.sun.star.uno.AnyConverter.convertSimple(AnyConverter.java)\X000a\X0009at
com.sun.star.uno.AnyConverter.toObject(AnyConverter.java)\X000a\X0009at
com.sun.star.comp.loader.JavaLoader.initialize(JavaLoader.java)\X000a,
Context = (com.sun.star.uno.XInterface) @0 } }
-%-

As far as I tested, I am very sure unopkg uses the given JRE. But
something seems still missing. If I set the JRE with the GUI and then
start unopkg, it works (only in an other shell without the exports).

Can you tell me what is missing for unopkg?

Greetings, Tobias

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



[dev] Linux: Deploying a UNO Package for all users on PC

2006-06-27 Thread Tobias Krais
Hi together,

if I want to add a UNO Package I use the command:
unopkg add /tmp/myPackage.uno.pkg

But now only one user can use the package. How can I deploy the package
for all users?

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-27 Thread Tobias Krais
Hi Joachim,

 OK. I used:
 -%-

 export UNO_JAVA_JFW_ENV_CLASSPATH=/usr/lib/openoffice/program/classes/j
 urt.jar;/usr/lib/openoffice/program/classes/ridl.jar;/usr/lib/openoffice/program

 /classes/java_uno.jar;/usr/lib/openoffice/program/classes/juh.jar;/usr/lib/openo

 ffice/program/classes/jut.jar;/usr/lib/openoffice/program/classes/unoidl.jar

 UNO_JAVA_JFW_ENV_CLASSPATH can be set to true which indicates that
 CLASSPATH is used.

I read this in you document. But it did not change the behavior.

[...]

 Another idea, add unoloader.jar to the class path.

I tried this also, but it did not work out.

Greetings, Tobias

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



Re: [dev] I would like to join the OpenOffice project

2006-06-19 Thread Tobias Krais
Hi Mashuq,

 Little intro abt me - I am from Bangladesh - 3rd year comp scie student - I 
 have good knowledge on java programming and working knowledge on C. I would 
 like to join the OpenOffice project and help with my limited ability. I have 
 no experience whatsoever of doing any work on a large software development 
 project with other people. I just did my assignments in the university. If I 
 am guided I hope I will be useful.

this homepage will guide you:

http://contributing.openoffice.org/programming.html

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-19 Thread Tobias Krais
Hi Joachim,

 i was a week off, so my answer is a bit late. I tried to start it OOo
 with the -env:..., to set the JRE. The option dialog then shows that the
 check box (use JRE) is not marked and I am not able to start the letter
 wizard, which is implemented in Java. This is  the case because, the
 UNO_JAVA_JFW_CLASSPATH_URLS variable is not used in direct mode. You
 would have to specify UNO_JAVA_JFW_CLASSPATH or UNO_JAVA_JFW_ENV_CLASSPATH.
 This may also cause the unopkg to fail. I suppose that you need to have
 at least these jars on your class path:
 
 jurt, ridl, java_uno, juh, jut, unoidl

So this should be the solution:
-%-
soffice
-env:UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
-env:UNO_JAVA_JFW_CLASSPATH=file:///usr/lib/openoffice/program/classes/jurt.jar;file:///usr/lib/openoffice/program/classes/ridl.jar;file:///usr/lib/openoffice/program/classes/java_uno.jar;file:///usr/lib/openoffice/program/classes/juh.jar;file:///usr/lib/openoffice/program/classes/jut.jar;file:///usr/lib/openoffice/program/classes/unoidl.jar
-%-
but it does not solve my problem. Is this correct?

BTW if I start soffice
-env:UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.06/ I
can start the letter wizard...

Can you tell my why the unopkg tool does not accept the -env parameter
although the script itself should recognize it?

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-13 Thread Tobias Krais
Hi Joachim,

 I read that OOo framework knows two modes: application mode and direct
 mode. Direct mode is what I need, because it does not read existing
 configuration. How can I start soffice or unopkg in direct mode?

 The problem with OOo is that it is configured to use application mode.
 That is, all java-related settings are made persistent and the options
 dialog relies on the persistend data. To this end there is jvmfwkrc
 which contains a path to the javasettings_xyz.xml.
 
 However you could of course try the direct mode. But bear in mind that
 the options dialog is not prepared to deal with it. You may run into
 trouble here.

It seems that won't matter. If I start OOo like this: soffice
-env:UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
the content of the Java options dialog will be greyed out and the
selected JRE is showed. See below...

 What must my jvmfwk3rc look like for direct mode? Is this OK:
 -%-
 [Bootstrap]
 UNO_JAVA_JFW_ENV_JREHOME=true
 UNO_JAVA_JFW_ENV_CLASSPATH=true
 UNO_JAVA_JFW_VENDOR_SETTINGS=javavendors.xml
 -%-

 You've got this certainly from your build environment. The direct mode
 was initially designed to support java in the build environment where
 there are no user settings.
 
 The jvmfwk3rc above may work if you adapt the path to the
 javavendors.xml. Have also a look into the jvmfwk3rc in the program
 directory of your office. It contains a variable:
 UNO_JAVA_JFW_CLASSPATH_URLS
 which contains jar files which are put on the class path. I am not sure
 if this value is also used if using direct mode.

This seems to be uninteresting if I look to the solution below.

 The header jvmfwk/framework.h contains also some helpful information.
 There is also a variable UNO_JAVA_JFW_JREHOME which can be used to point
 directly to a JRE. The paths have to be file URLs. You could for example
 start soffice this way.
 
 soffice -env:UNO_JAVA_JFW_JREHOME=file:///java/myJRE

That seems to solve my problem, as i wrote above.

 I am not sure if this automatically overrides the value from the user
 settings. But if you remove UNO_JAVA_JFW_USER_DATA and perhaps
 UNO_JAVA_JFW_SHARED_DATA then it may work.

Seems to be not necessary.

[...]

Now I want to do a second step. I want to use unopkg to register a
uno.pkg. The registration itself does not work with FSF JRE 1.4, but
with JRE 1.5, although the package itself works with JRE 1.3 and above.
How can I change the Variable UNO_JAVA_JFW_JREHOME for the unopkg call?
unopkg does not support the -env command. How can I solve this?

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-09 Thread Tobias Krais
Hi Joachim,

 For more information about how a JRE is selected by OOo you could have a
 look at:
 http://udk.openoffice.org/common/man/spec/javavendorextension.sxw

I investigated this document and it is really good work. That helped me
to understand OOo and Java. Please let me ask some questions:

I read that OOo framework knows two modes: application mode and direct
mode. Direct mode is what I need, because it does not read existing
configuration. How can I start soffice or unopkg in direct mode?

What must my jvmfwk3rc look like for direct mode? Is this OK:
-%-
[Bootstrap]
UNO_JAVA_JFW_ENV_JREHOME=true
UNO_JAVA_JFW_ENV_CLASSPATH=true
UNO_JAVA_JFW_VENDOR_SETTINGS=javavendors.xml
-%-

And thus javavendors.xml must look like the javasettings_Linux_x86.xml.
Is this correct?

If I am correct, these steps will enable me to start OOo with my own
settings, thus also my own JRE. Right?

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-09 Thread Tobias Krais
Hi Tom,

 Well I could only second Tobias that if you are adminstrating clients
 via e.g. an ssh-session it would be great if you would not need to use
 the GUI to change your clients Java configuration without forwarding
 your X for example.

thats it and even worse: have a look at www.ajaxwrite.com. This website
uses OOo for conversion purposes. I can't imagine using always a user
interface for configuring my JRE in that case.

Thanks again.

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-09 Thread Tobias Krais
Hi Tom,

 Well if I'm not completely mistaken you only need to modify the path to
 the jre used by openoffice don't you?

I think so. At the moment I am testing whether there are other things
that need to be changed or not (like VendorID,...).

 I have no sed commando available at the moment but because I'm better in
 perl here's a one liner (this is even cross-platform as it's perl :-)

:-)

 8
 perl -e '{local $/ = undef; open(IN,$ARGV[0]);$c=IN;close(IN);}$c =~
 s/location.+\/location/location$ARGV[1]\/location/;open(OUT,$ARGV[0]);print
 OUT $c;close(OUT);' $path_to_javasettings_Linux_x86.xml $new_jre%
 8
 
 for example:
 
 8
 perl -e '{local $/ = undef; open(IN,$ARGV[0]);$c=IN;close(IN);}$c =~
 s/location.+\/location/location$ARGV[1]\/location/;open(OUT,$ARGV[0]);print
 OUT $c;close(OUT);' javasettings_Linux_x86.xml file:///usr/java5/jre
 8
 
 As already mentionned if you have to check if this changes within
 releases but it should work for the current ones.

I will check it each time, that seems to be a solution.

Greetings, Tobias

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



Re: [dev] OpenOffice without Java

2006-06-08 Thread Tobias Krais
Hi Chris,

 1. Would there be any OOo performance gains by disabling Java in the build
 process?

no. Java is activated as soon as it is needed and then stays in memory.

 2. If java was disabled in the build what besides the Base application and
 some Wizards would be affected?

There are indeed some wizards. I think the cricular letter is an example.

 3. In order to build OOo without Java are there any other flags that need to
 be passed besides the --disable Java?

I don't think so, but others can give you a better answer.

Greetings, Tobias

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



Re: [dev] unopkg fails

2006-06-08 Thread Tobias Krais
Moin Jürgen,

[...]

 I used Sun Java 1.5.0_06 from Debian Sid non-free for compiling. It
 doesn't matter which -source and -target flags I used (tried it with
 1.1, 1.2, 1.3, 1.4). I also used the Blackdown Java 1.4.2.03-1 and the
 FSF GCJ 1.4.2.

 I tested _every_ combination of these JDKs that means I e.g. compiled
 it with Sun Java while OOo used Sun Java - it works; I tried
 compiling with each of these Javas, but only the FSF GCJ Java did not
 succeed with adding the UNO package.
 
 mmh, it's obviously that you have to use Java 1.5 in the office when you
 compile your component with Java 1.5. For all combinations where you use
 1.5 for compiling and a smaller version in the office i would expect
 that it won't work because the incompatible class file format in Java
 1.5.

Not in case I compile with options -source 1.4 -target 1.4

 I personally use only Sun Java packages ;-) and can't say anything
 about the FSF GCJ but i will give it a try when i find some time to test
 it.

Hmm. You mail header tells me that you are using Windows. This is not
really a problem in Windows, because Windows OOo comes with a Java 1.5.
This is only a problem with Debian Linux, where OOo comes with the FSF
Java... and I can't change the Java via commandline.

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-08 Thread Tobias Krais
Hi Joachim,

 selecting a different JRE is only possible through the options dialog.

 at the moment I am creating a little Debian package. This package only
 runs with a Java = 1.5. How can I tell the OOo installation via
 commandline to use a more modern Java than the Default 1.4?

which component is the responsible for setting a JRE, so that I can
contact that list.

Greetings, Tobias

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



Re: [dev] How to run from solver

2006-06-08 Thread Tobias Krais
Hi Chris,

 I just started trying to hack OO a bit.
 I finally made it to run a complete build from the CVS repository.
 
 The build ends with a bunch ob .deb files to install on my Debian system.
 
 Question: How can I install my build in a separate directory without
 affecting
 the package system? Is it possible to run OO directly from the source
 tree ?
 
 Any hints welcome.

make a dircetory and the dpkg -X whatever.deb. But may be you will miss
any dependencies. Give it a try.

Another solution would be that you install a chroot environment... a bit
oversizeda but it won't affect anything.

Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-08 Thread Tobias Krais
Hi Tom,

 Well if you are on linux a simple sed command could change the used
 JDK or am I missing something. This could surely done also on win32 but
 I have no idea on win32-scripting. The information is stored on my
 system in:
 
 [EMAIL PROTECTED]:~tom/.openoffice/user/config/javasettings_Linux_x86.xml

tell me more! I know this file. But what do you mean with the sed
command? How is it used?

Greetings, Tobias

[...]

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-08 Thread Tobias Krais
Hi Peter,

 http://en.wikipedia.org/wiki/Sed

I know this littel program, but I don't know how sed can change the JRE
for OOo...

Greetings, Tobias

 Well if you are on linux a simple sed command could change the used
 JDK or am I missing something. This could surely done also on win32 but
 I have no idea on win32-scripting. The information is stored on my
 system in:

 [EMAIL PROTECTED]:~tom/.openoffice/user/config/javasettings_Linux_x86.xml

 tell me more! I know this file. But what do you mean with the sed
 command? How is it used?

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



Re: [dev] unopkg fails

2006-06-07 Thread Tobias Krais

Hi Jürgen,


My problem: I want to register a little UNO package at OOo, using
unopkg. It does not matter which Java compiler I use for compiling my
package. If I want to register my ready built package I can't use the
Free Software Foundation 1.4.2 Java (all others I tested will work). If
I use the FSF 1.4.2 Java and try to enable my UNO Package using the
command /usr/lib/openoffice/program/unopkg gui I get following error:


[...]


can you be more concrete ...
- which Java version was used to compile your package

 - which other Java versions did have tested

I used Sun Java 1.5.0_06 from Debian Sid non-free for compiling. It 
doesn't matter which -source and -target flags I used (tried it with 
1.1, 1.2, 1.3, 1.4). I also used the Blackdown Java 1.4.2.03-1 and the 
FSF GCJ 1.4.2.


I tested _every_ combination of these JDKs that means I e.g. compiled it 
with Sun Java while OOo used Sun Java - it works; I tried compiling 
with each of these Javas, but only the FSF GCJ Java did not succeed with 
adding the UNO package.


Greetings, Tobias

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



Re: [dev] Changing the default Java for OOo from command line

2006-06-07 Thread Tobias Krais

Hi Joachim,


selecting a different JRE is only possible through the options dialog.


would it be a good idea to add such a feature?

Greetings, Tobias


at the moment I am creating a little Debian package. This package only
runs with a Java = 1.5. How can I tell the OOo installation via
commandline to use a more modern Java than the Default 1.4?


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



[dev] [Fwd: Re: Bug#369924: soffice in PATH missing - automatic soffice starting from jar not possible]

2006-06-06 Thread Tobias Krais
Hi together,

I submitted a bug against the Debian OpenOffice package and we need your
help to solve it.

Problem description: In my Java application I use the OO bootstrap
mechanism with the classloader classes as described here:
http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip
In case there is no soffice executable in my PATH the bootstrap classes
won't find the OO installation.

  Solutions:
  - add a link /usr/bin/soffice to /usr/lib/openoffice/program/soffice

What makes the soffice execuable so specific that the Debian ooffice
executable does not work? Please help us answering this question to
solve this Bug in Debian.

Greeting,

Tobias

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



[dev] Changing the default Java for OOo from command line

2006-06-06 Thread Tobias Krais
Hi together,

at the moment I am creating a little Debian package. This package only
runs with a Java = 1.5. How can I tell the OOo installation via
commandline to use a more modern Java than the Default 1.4?

Greetings, Tobias

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



[dev] unopkg fails

2006-06-06 Thread Tobias Krais
Hi together,

please tell me whether there is an other bug in OOo.

My problem: I want to register a little UNO package at OOo, using
unopkg. It does not matter which Java compiler I use for compiling my
package. If I want to register my ready built package I can't use the
Free Software Foundation 1.4.2 Java (all others I tested will work). If
I use the FSF 1.4.2 Java and try to enable my UNO Package using the
command /usr/lib/openoffice/program/unopkg gui I get following error:
-%-
(com.sun.star.lang.DisposedException) { { { Message = URP_Bridge :
disposed\X000a(tid=8) Unexpected connection closure, Context =
(com.sun.star.XInterface) 0x0 } } }
-%-

Can you tell me whether this is a OOo Bug or not?

I attached the pkg-file for it is very small. I hope this is OK.

Greetings, Tobias

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

Re: [dev] [Fwd: Re: Bug#369924: soffice in PATH missing - automatic soffice starting from jar not possible]

2006-06-06 Thread Tobias Krais

Hi Stephan,

[..]


What makes the soffice execuable so specific that the Debian ooffice
executable does not work? Please help us answering this question to
solve this Bug in Debian.


Is it the case that on Debian there is an executable named ooffice in 
$PATH but not an executable named soffice?


Yes.

Well, the OOo Java simple 
bootstrap mechanism needs to find an OOo installation, and one of the 
things it tries out is to search for a file named soffice in $PATH 
(other things are looking at an explicitly set $UNO_PATH, for example).


OK, this means that would mean that a simple link to ooffice called 
soffice should work, but it does not.


Both files, the /usr/lib/openoffice/program/soffice and the 
/usr/bin/ooffice call the /usr/lib/openoffice/program/soffice.bin and do 
some other things. And these other things make the difference. What is 
there so special?


Greetings, Tobias

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



[dev] Reward if solved in Version 2.0.3 - [Issue 63169]

2006-04-03 Thread Tobias Krais
Hi ML,

our company (www.twc.de) has a keen interest in getting Issue 63169
(http://www.openoffice.org/issues/show_bug.cgi?id=63169) solved in OO
2.0.3. We decided to pay a reward if somebody solves this issue.

But we do not know how these rewards are handled and who is responsible.
Can you tell us how and where to start?

Thanks for your help!

Greetings, Tobias Krais

 Original Message 
Subject: [Issue 63169] New - Selecting printer in linux using Java/UNO
not possible
Date: 14 Mar 2006 15:09:03 -
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63169
  Issue #:|63169
  Summary:|Selecting printer in linux using Java/UNO not
  |possible
Component:|api
  Version:|OOo 2.0.1
 Platform:|All

URL:|http://api.openoffice.org/servlets/ReadMsg?list=devm
  |sgNo=14706
   OS/Version:|Linux
   Status:|UNCONFIRMED
Status whiteboard:|
 Keywords:|
   Resolution:|
   Issue type:|DEFECT
 Priority:|P3
 Subcomponent:|code
  Assigned to:|sw
  Reported by:|tobiaskrais

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



Re: [dev] Adding menus / menu items at Runtime

2006-02-14 Thread Tobias Krais
Hi Kent,

 I found this helpful: 
 
 http://documentation.openoffice.org/HOW_TO/various_topics/HowTo_modify_context_menu.pdf
 
 however this may only be relevant to the context menu.

yes, its only for the context menu. I will throw a glance on it.

Thanks, Tobias

 
 --- Tobias Krais [EMAIL PROTECTED] wrote:
 
 
Hi together,

since some weeks I'm developing a little OpenOffice
connector for a
program we develeped (called JUDAS: www.judas.de).
At the moment I try
to add a menu called JUDAS to the menu bar at
runtime. I found how to
disable menus at runtime, but not how to add them.

You may ask why is it necessary that the menus
should be added at
runtime. The menus should appear only if OpenOffice
was started by
JUDAS. If the user starts OpenOffice by itself, the
menu should not appear.

My question is: is it possible to generate menus at
runtime? We are
using OOo2.

If yes, do you have examples or know where I should
start studying?

If not, how would you solve this issue?

Greetings, Tobias


 
 -
 
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]

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



Re: [dev] Adding menus / menu items at Runtime

2006-02-14 Thread Tobias Krais
Hi Carsten,

 My question is: is it possible to generate menus at runtime? We are
 using OOo2.

 If yes, do you have examples or know where I should start studying?

 I think I answered this question on the mailing list api.openoffice.org
 several times. I attached two small examples which modifies the menu bar
 of an application module. If you only want to do temporary changes,
 please use the transient example.

Thanks a lot. I will try the transient example because only temporary
changes are needed. Is it possible to do the same in Java?

At the moment I am searching the ML archiv dev@api.openoffice.org for
this topic.

Thanks for the hint.

Greetings, Tobias

 
 Regards,
 Carsten
 
 
 
 
 REM  *  BASIC  *
 
 Sub Main
   REM *** Adds a item to the File Menu only transient. Means
   REM *** that this menu item only exists for and during the 
   REM *** lifetime of the current frame.
   
   REM *** Initialize strings
   sMenuBar = private:resource/menubar/menubar
   sMyPopupMenuCmdId = .uno:PickList
   sMyCommand = macro:///Standard.Module1.Test()
   
   REM *** Retrieve the current frame of my model
   oModel = ThisComponent
   
   if not isNull( oModel ) then
 REM *** Retrieve frame from current controller
 oFrame = oModel.getCurrentController().getFrame()
 
 REM *** Retrieve the layout manager of my current frame
 oLayoutManager = oFrame.LayoutManager()
   
 REM *** Retrieve the menu bar from the layout manager
 oMenuBar = oLayoutManager.getElement( sMenuBar )
   
 REM *** Retrieve writable configuration settings from menu bar
 oMenuBarSettings = oMenuBar.getSettings( true )
 
 REM *** Make our changes only transient. An Add-on should
 REM *** never change configuration persistently as it can
 REM *** be deinstalled by a user without any chance to 
 REM *** undo its configuration changes!
 REM *** Please look for bug #i46194 which prevents using
 REM *** oMenuBar.Persistent = false!!
 oMenuBar.Persistent = false
   
 REM *** Look for the File popup menu and add our command
 REM *** We must look if we haven't added our command already!
 fileMenuIndex = FindPopupMenu( sMyPopupMenuCmdId, oMenuBarSettings )
 if fileMenuIndex = 0 then
   oPopupMenuItem() = oMenuBarSettings.getByIndex(fileMenuIndex)
   oPopupMenu = GetProperty( ItemDescriptorContainer, oPopupMenuItem() )
   if not isNull( oPopupMenu ) then
 if FindCommand( sMyCommand, oPopupMenu ) = -1 then
   oMenuItem = CreateMenuItem( sMyCommand, Standard.Module1.Test )
   nCount = oPopupMenu.getCount()
   oPopupMenu.insertByIndex( nCount, oMenuItem )
 endif
   endif
 else
   msgbox No file menu found!
 endif
   
 oMenuBar.setSettings( oMenuBarSettings )
   endif
 End Sub
  
 Function FindCommand( Command as String, oPopupMenu as Object ) as Integer
   nCount = oPopupMenu.getCount()-1
   for i = 0 to nCount
 oMenuItem() = oPopupMenu.getByIndex(i)
   nPropertyCount = ubound(oMenuItem())
   for j = 0 to nPropertyCount
 if oMenuItem(j).Name = CommandURL then
 if oMenuItem(j).Value = Command then
FindCommand = j
   exit function
   endif
 endif
   next j
   next i
   
   FindCommand = -1
 End Function
 
 Function FindPopupMenu( Command as String, oMenuBarSettings as Object ) as 
 Integer
   for i = 0 to oMenuBarSettings.getCount()-1
 oPopupMenu() = oMenuBarSettings.getByIndex(i)
   nPopupMenuCount = ubound(oPopupMenu())
   for j = 0 to nPopupMenuCount
 if oPopupMenu(j).Name = CommandURL then
 if oPopupMenu(j).Value = Command then
FindPopupMenu = j
exit function
   endif
 endif
   next j
   next i
   
   FindPopupMenu = -1
 End Function
 
 Function GetProperty( PropertyName as String, properties() as Variant ) as 
 Variant
   for j = lbound( properties() ) to ubound( properties() )
 oPropertyValue = properties(j)
 if oPropertyValue.Name = PropertyName then
 GetProperty = oPropertyValue.Value
   exit function
   endif
   next j
   
   GetProperty = null
 end function
   
 Function CreateMenuItem( Command as String, Label as String ) as Variant
   Dim aMenuItem(2) as new com.sun.star.beans.PropertyValue
   
   aMenuItem(0).Name = CommandURL
   aMenuItem(0).Value = Command
   aMenuItem(1).Name = Label
   aMenuItem(1).Value = Label
   aMenuItem(2).Name = Type
   aMenuItem(2).Value = 0
   
   CreateMenuItem = aMenuItem()
 End Function
 
 Sub Test
  MsgBox Test
 End Sub
 
 
 
 
 REM  *  BASIC  *
 
 Sub Main
   REM *** Creates a top-level popup menu on the Writer menu bar 
 persistently.
   REM *** It checks if its popup menu has already been added to the menu 
 bar
  

Re: [dev] Adding menus / menu items at Runtime

2006-02-14 Thread Tobias Krais
Hi Tom,

 Couldn't you package this as an Code-Snippet. Using Paolos
 Snippet-Creator found here this would take less than a minute ;-)
 
 http://www.paolo-mantovani.org/

if my plans work out this will be a good idea. I already searched the
snippeds page for examples...

Greetings, Tobias



REM  *  BASIC  *

Sub Main
  REM *** Adds a item to the File Menu only transient. Means
  REM *** that this menu item only exists for and during the 
  REM *** lifetime of the current frame.
  
  REM *** Initialize strings
  sMenuBar = private:resource/menubar/menubar
  sMyPopupMenuCmdId = .uno:PickList
  sMyCommand = macro:///Standard.Module1.Test()
  
  REM *** Retrieve the current frame of my model
  oModel = ThisComponent
  
  if not isNull( oModel ) then
REM *** Retrieve frame from current controller
oFrame = oModel.getCurrentController().getFrame()

REM *** Retrieve the layout manager of my current frame
oLayoutManager = oFrame.LayoutManager()
  
REM *** Retrieve the menu bar from the layout manager
oMenuBar = oLayoutManager.getElement( sMenuBar )
  
REM *** Retrieve writable configuration settings from menu bar
oMenuBarSettings = oMenuBar.getSettings( true )

REM *** Make our changes only transient. An Add-on should
REM *** never change configuration persistently as it can
REM *** be deinstalled by a user without any chance to 
REM *** undo its configuration changes!
REM *** Please look for bug #i46194 which prevents using
REM *** oMenuBar.Persistent = false!!
oMenuBar.Persistent = false
  
REM *** Look for the File popup menu and add our command
REM *** We must look if we haven't added our command already!
fileMenuIndex = FindPopupMenu( sMyPopupMenuCmdId, oMenuBarSettings )
if fileMenuIndex = 0 then
  oPopupMenuItem() = oMenuBarSettings.getByIndex(fileMenuIndex)
  oPopupMenu = GetProperty( ItemDescriptorContainer, oPopupMenuItem() )
  if not isNull( oPopupMenu ) then
if FindCommand( sMyCommand, oPopupMenu ) = -1 then
  oMenuItem = CreateMenuItem( sMyCommand, Standard.Module1.Test )
  nCount = oPopupMenu.getCount()
  oPopupMenu.insertByIndex( nCount, oMenuItem )
endif
  endif
else
  msgbox No file menu found!
endif
  
oMenuBar.setSettings( oMenuBarSettings )
  endif
End Sub
 
Function FindCommand( Command as String, oPopupMenu as Object ) as Integer
  nCount = oPopupMenu.getCount()-1
  for i = 0 to nCount
oMenuItem() = oPopupMenu.getByIndex(i)
  nPropertyCount = ubound(oMenuItem())
  for j = 0 to nPropertyCount
if oMenuItem(j).Name = CommandURL then
if oMenuItem(j).Value = Command then
   FindCommand = j
  exit function
  endif
endif
  next j
  next i
  
  FindCommand = -1
End Function

Function FindPopupMenu( Command as String, oMenuBarSettings as Object ) as 
Integer
  for i = 0 to oMenuBarSettings.getCount()-1
oPopupMenu() = oMenuBarSettings.getByIndex(i)
  nPopupMenuCount = ubound(oPopupMenu())
  for j = 0 to nPopupMenuCount
if oPopupMenu(j).Name = CommandURL then
if oPopupMenu(j).Value = Command then
   FindPopupMenu = j
   exit function
  endif
endif
  next j
  next i
  
  FindPopupMenu = -1
End Function

Function GetProperty( PropertyName as String, properties() as Variant ) as 
Variant
  for j = lbound( properties() ) to ubound( properties() )
oPropertyValue = properties(j)
if oPropertyValue.Name = PropertyName then
GetProperty = oPropertyValue.Value
  exit function
  endif
  next j
  
  GetProperty = null
end function
  
Function CreateMenuItem( Command as String, Label as String ) as Variant
  Dim aMenuItem(2) as new com.sun.star.beans.PropertyValue
  
  aMenuItem(0).Name = CommandURL
  aMenuItem(0).Value = Command
  aMenuItem(1).Name = Label
  aMenuItem(1).Value = Label
  aMenuItem(2).Name = Type
  aMenuItem(2).Value = 0
  
  CreateMenuItem = aMenuItem()
End Function

Sub Test
 MsgBox Test
End Sub




REM  *  BASIC  *

Sub Main
  REM *** Creates a top-level popup menu on the Writer menu bar 
 persistently.
  REM *** It checks if its popup menu has already been added to the menu 
 bar
  REM *** and does nothing.
  REM *** The popup menu contains one menu item with a

  REM *** Initialize strings
  sMenuBar = private:resource/menubar/menubar
  sMyPopupMenuCmdId = vnd.openoffice.org:MyMenu
  
  REM *** Retrieve the module configuration manager from central module 
 configuration manager supplier
  oModuleCfgMgrSupplier = 
 createUnoService(com.sun.star.ui.ModuleUIConfigurationManagerSupplier)

  REM *** Retrieve the module configuration manager with module identifier
  REM *** See 

Re: [dev] Adding menus / menu items at Runtime

2006-02-14 Thread Tobias Krais
Hi Carsten,

 Thanks a lot. I will try the transient example because only temporary
 changes are needed. Is it possible to do the same in Java?

 Yes, you can also use Java. The example uses a UNO API, therefore you
 can use any supported language.

sounds very good. At the moment I am reading your document
http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw
and up to now it is easy to read. If I have further questions should I
post them to dev@api.openoffice.org or on this list?

Greetings, Tobias

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



[dev] Adding menus / menu items at Runtime

2006-02-13 Thread Tobias Krais
Hi together,

since some weeks I'm developing a little OpenOffice connector for a
program we develeped (called JUDAS: www.judas.de). At the moment I try
to add a menu called JUDAS to the menu bar at runtime. I found how to
disable menus at runtime, but not how to add them.

You may ask why is it necessary that the menus should be added at
runtime. The menus should appear only if OpenOffice was started by
JUDAS. If the user starts OpenOffice by itself, the menu should not appear.

My question is: is it possible to generate menus at runtime? We are
using OOo2.

If yes, do you have examples or know where I should start studying?

If not, how would you solve this issue?

Greetings, Tobias

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



Re: [dev] Error: no office executable found!

2006-02-05 Thread Tobias Krais
Hi J,

 I cannot connect to OO from a JSP under Tomcat.
 Using the bootstrap call:
 
 xContext = com.sun.star.comp.helper.Bootstrap.bootstrap();
 
 I receive the following error:
 com.sun.star.comp.helper.BootstrapException: no office executable found!
 
 I can run the same code directly, from a test main java application.
 
 Does anyone know what needs to be set for this to work from a servlet 
 container, specifically Tomcat?

I had the same problem with my Eclipse project. Try adding the folder
that contains the office executable to you classpath. That will help.

Greetings, Tobias

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



[dev] [Semi OT] OO SDK and Eclipse: how to add API reference

2006-01-19 Thread Tobias Krais
Hi ML,

may be some of you use Eclipse for UNO developement. Well, I have to,
but I don't know, how to to add the API reference to my Eclipse as
decribed on page 33 of the OO Dev Guide. Can you help me?

Greetings, Tobias

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



[dev] [SOLVED] Re: [dev] Antwort: [dev] [Semi OT] OO SDK and Eclipse: how to add API reference

2006-01-19 Thread Tobias Krais
Hi Tobias,

 1) create a new project
 2) right-click your project in the package explorer (on the left), select
 properties
 3) select java build paths, then libraries
 4) click on add external jars
 5) select the api-jars, which can be found at
 openofficedirectory/program/classes

OK, I did this, but I tought there are additional steps needed as for
the integration in NetBeans.

The methods are suggested now very correctly. Thanks.

Greetings, Tobias

 may be some of you use Eclipse for UNO developement. Well, I have to,
 but I don't know, how to to add the API reference to my Eclipse as
 decribed on page 33 of the OO Dev Guide. Can you help me?

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



[dev] [SOLVED] Re: [dev] [Semi OT] OO SDK and Eclipse: how to add API reference

2006-01-19 Thread Tobias Krais
Hi Laurent,

 may be some of you use Eclipse for UNO developement. Well, I have to,
 but I don't know, how to to add the API reference to my Eclipse as
 decribed on page 33 of the OO Dev Guide. Can you help me?

 Cedric did a great job regarding Eclipse integration
 are you ware of it ?
 
 http://api.openoffice.org/source/browse/api/ooeclipseintegration/
 http://cedric.bosdonnat.free.fr/ooeclipseintegration/
 http://blogs.nuxeo.com/sections/blogs/cedric_bosdonnat/2005_11_29_ooeclipse-integration

up to now I was not aware of it. I just installed it and I really like
it. Cedric did really great work. By time I will find out all the features.

Thanks for the links.

Greetings,

Tobias

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



Re: [dev] [SOLVED] Re: [dev] Newbie: com.sun.star.comp.helper.BootstrapException: no office executable found!

2006-01-17 Thread Tobias Krais
Hi Jürgen,

 yep. same script here on Debian. other path, though.
 If it's really needed and would work I guess we could add some soffice
 link (like /usr/bin/soffice - /usrr/bin/ooffice - calls the right
 soffice), too..

 /usr/bin/soffice should be a link directly to
 officepath/program/soffice otherwise it won't work.
 In the past the setup has inserted such a link and the bootstrap
 mechanism uses this information (resolves the link and set an
 appropriate classpath). But it seems that this search mechanism is not
 reliable and the best way is to include the office/program directory
 of the office you want to use in your PATH.
 Today we insert a link staroffice or openoffice (somewhere) when i
 remember correctly, maybe the bootstrap search algorithm is not adapted.
 I will check it.

I tried to create a link from /usr/bin/soffice to
/usr/lib/openoffice/programm/soffice, but it did not work. Only adding
/usr/lib/openoffice/programm/soffice to my classpath in project helped.

Greetings, Tobias

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



Re: [dev] [SOLVED] Re: [dev] Newbie: com.sun.star.comp.helper.BootstrapException: no office executable found!

2006-01-17 Thread Tobias Krais
Hi Jürgen

 I tried to create a link from /usr/bin/soffice to
 /usr/lib/openoffice/programm/soffice, but it did not work. Only adding
 /usr/lib/openoffice/programm/soffice to my classpath in project helped.

 mmh, strange i will tkae a closer look on it asap.

 i've tested it with a m145 build and it works fine after i have created
 a symbolic link /usr/bin/soffice - offiepath/program/soffice.
 There is maybe a problem with your Java, i used Sun's jdk1.5.0_02.

Meanwhile I use Sun JDK 1.5.0.06+debian-1.unofficial.sarge.1. I also had
to reinstall my Linux due to a harddisk crash, but: nothing changed. I
have to add the OFFICE_HOME to my classpath.
Doesn't matter - it's working.

 But of course there is still the open question why this perl script is
 necessary, i can't see any problems with a defaut installtion at the moment

Greetings, Tobias

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



Re: [dev] Newbie: com.sun.star.comp.helper.BootstrapException: no office executable found!

2006-01-16 Thread Tobias Krais
Hi Christoph,

The fitting ant script works out fine and OpenOffice 2 ist running. OO2
was started with following command:
ooffice -accept=socket,host=localhost,port=8100;urp

 try an ending Semicolon at the accept string:
 ooffice -accept=socket,host=localhost,port=8100;urp;

no, no things changed.

Greetings, Tobias

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



[dev] [SOLVED] Re: [dev] Newbie: com.sun.star.comp.helper.BootstrapException: no office executable found!

2006-01-16 Thread Tobias Krais
Hi Stephan,

 Just when I started the sdk Developer Guide for OO2 I experienced
 problems with the first application.

 First my system information: I use Debian Linux. My IDE is Eclipse. I
 installed OpenOffice2 and the OO2 sdk. I use blackdown java 1.4.2.03.

 , never tried if it works with the blackdown java, but normally the
 bootstrap mechanism should find a running office instance.

working with OO 1.1.4 and the Java UNO Wrapper from .riess it works. But
now I tried the samen with sun JDK 5. Nothing changes.

 What you could try is
 
 1. ensure that office_install/program is in the PATH

I tried:
-%-
[EMAIL PROTECTED]:~$ export PATH=$PATH:/usr/lib/openoffice/program
[EMAIL PROTECTED]:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/openoffice/program
[EMAIL PROTECTED]:~$ eclipse
searching for compatible vm...
  testing /usr/lib/jvm/java-gcj...found
-%-
and then I run the application again: nothing changes

 2. call your java class with parameter, like
java -Dcom.sun.star.lib.loader.unopath=/opt/OpenOffice.org/program ..

OK, I added a classpath variable to the project. Variable Name
OFFICE_HOME value /usr/lib/openoffice/program. Then it work. You
suggested the solution.

Thanks a lot! I hope you won't hear too much from me in future :-)

Greetings, Tobias

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



Re: [dev] Newbie: com.sun.star.comp.helper.BootstrapException: no office executable found!

2006-01-16 Thread Tobias Krais
Solli Jürgen,

 try an ending Semicolon at the accept string:
 ooffice -accept=socket,host=localhost,port=8100;urp;

 When you use the simple bootstrap method you don't need to start the
 office separately. And you don't need an accept string, the simple
 bootstrap mechanism connects to the office using a named pipe connection.

very interesting. You're right. Now I have an other question: is it
possible to load an OpenOffice odt file without having a listening
OpenOffice?

Greetings, Tobias

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