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 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 would do with Java. Then unopkg should work. That is you
would start unopkg the same as soffice
soffice
-env:UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
-env:UNO_JAVA_JFW_CLASSPATH=/usr/lib/openoffice/program/classes/jurt.jar:/usr/lib/openoffice/program/classes/ridl.jar:...
that worked out for soffice. But not for unopkg:
-----%<----
/usr/lib/openoffice/program/unopkg gui
-env:UNO_JAVA_JFW_JREHOME=file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
-env:UNO_JAVA_JFW_CLASSPATH=/usr/lib/openoffice/program/classes/jurt.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/openoffice/program/classes/jut.jar;/usr/lib/openoffice/program/classes/unoidl.jar
ERROR: unexpected option
-env:UNO_JAVA_JFW_CLASSPATH=/usr/lib/openoffice/program/classes/jurt.jar!
Use unopkg --help (short -h) to print all options.
-----%<----
If I then have a closer look to the unopkg script I see that the -env:
should be used:
-----%<-----
#collect all bootstrap variables specified on the command line
#so that they can be passed as arguments to javaldx later on
for arg in $@
do
case "$arg" in
-env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";;
esac
done
# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/javaldx" ] ; then
java_ld_library_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS`
if [ "$java_ld_library_path" != "" ] ; then
case $sd_platform in
AIX)
LIBPATH=${java_ld_library_path}:${LIBPATH}
;;
Darwin)
DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH}
;;
HP-UX)
SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH}
;;
IRIX*)
LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH}
;;
*)
LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
;;
esac
fi
fi
-----%<-----
Whats wrong here? Please help me again.
Greetings, Tobias
---------------------------------------------------------------------
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]