本文以redhat/bash为例建议首先卸载自带的openoffice卸载方法 rpm e nodeps openoffice rpm e nodeps openofficelibs rpm e nodeps openofficein 安装 JSDK 将 jsdk__fcslinuxirpm 安装到 /usr/java 中 #rpm ivh jsdk__fcslinuxirpm 下载jsdk__fcslinuxirpm 安装 StarOffice /setup 提示安装目标目录时建议选择/starsuite其中提示选择Java虚拟机时请点击选择然后选择/usr/java/jsdk目录确认即可 安装product patch /so_ppbinlinuxbin (解压pp/linux/tar可得到本文件)安装过程中会发现提示starsuite 已安装在/starsuite上确定继续安装直到完成将bin安装到 /staroffice 中 安装 StarOffice SDK 为方便起见将包安装到 /usr/starsuite 中然后将目录改为 sdk cp OOo_SDK_alpha_LinuxIntel_odktargz /usr/starsuite cd /usr/starsuite tar xvfz OOo_SDK_alpha_Linux Intel_odktargz mv _alpha_SDK sdk 修改/starsuite/sdk/setsdkenv_unixin 确保有下列四行 set SDK_HOME=/starsuite/sdk set OFFICE_HOME=/starsuite set SDK_JAVA_HOME=/usr/java/jsdk set SDK_AUTO_DEPLOYMENT=YES 修改系统环境变量 (以redhat为例)在/etc/rcd/rclocal最后加入下列语句 export CLASSPATH= /starsuite/program/classes/classesjar:/starsuite/program/classes/dbjar:/starsuite/program/classes/java_unojar:/starsuite/program/classes/juhjar:/starsuite/program/classes/jurtjar:/starsuite/program/classes/jutjar:/starsuite/program/classes/ridljar:/starsuite/program/classes/sandboxjar:/starsuite/program/classes/unoiljar:/starsuite/program/classes/xtjar export PATH=$PATH:/usr/java/jsdk: /starsuite/program 修改 StarOffice 的 classpath 运行/starsuite/program/soffice在工具>选项>StarSuite>安全>ClassPath中填入 /starsuite/program/classes/classesjar: /starsuite/program/classes/dbjar: /starsuite/program/classes/java_unojar: /starsuite/program/classes/juhjar: /starsuite/program/classes/jurtjar: /starsuite/program/classes/jutjar: /starsuite/program/classes/ridljar: /starsuite/program/classes/sandboxjar: /starsuite/program/classes/unoiljar: /starsuite/program/classes/xtjar 安装和配置完毕! |