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

2006-06-29 Thread Joachim Lingner
Actually this could be caused by the initial error, that unopkg has problems with the bootstrap variables. You could build jvmfwk project with debug information then the output shows what the class path is. Joachim Tobias Krais wrote: Hi Joachim, OK. I used: -%<- export UNO_JAVA_J

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

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

2006-06-27 Thread Joachim Lingner
Hi, 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;

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: -%<-

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

2006-06-22 Thread Joachim Lingner
Hi, 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 ... Joachim Tobias Krais wrote: Hi Joa

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

2006-06-22 Thread Tobias Krais
Hi Joachim, thank you for helping me again and again. I make good progress here. First I had to delete my ~/.openoffice2/user/config/javasettings_Linux_x86.xml. Last time I forgot this and it did not work out. > UNO_JAVA_JFW_CLASSPATH requires system paths. Spezify the class path > just as you wo

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

2006-06-19 Thread Joachim Lingner
Hi Tobias, 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/p

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

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

2006-06-19 Thread Joachim Lingner
Hi, 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_J

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.

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

2006-06-09 Thread Joachim Lingner
Tobias Krais wrote: 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. T

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

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.ajaxwri

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 question

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

2006-06-08 Thread Tom Schindl
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. Tom Joachim Lingner schrieb: > > Tom Schindl wrote: >> Hi, >> >> W

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

2006-06-08 Thread Tom Schindl
Well if I'm not completely mistaken you only need to modify the path to the jre used by openoffice don't you? 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

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

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

2006-06-08 Thread Joachim Lingner
Tom Schindl wrote: Hi, 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/java

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

2006-06-08 Thread Peter Eberlein
Hi Tobias, http://en.wikipedia.org/wiki/Sed Regards Peter Tobias Krais schrieb: 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 o

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/javasettin

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

2006-06-08 Thread Tom Schindl
Hi, 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

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

2006-06-08 Thread Joachim Lingner
Tobias Krais wrote: Hi Joachim, selecting a different JRE is only possible through the options dialog. would it be a good idea to add such a feature? Selecting a JRE can be regarded as part of the office configuration. Now one could argue, that every aspect of the configuration should be

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

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 command

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

2006-06-07 Thread Joachim Lingner
Hi, selecting a different JRE is only possible through the options dialog. Joachim Tobias Krais wrote: 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 tha

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