本文以redhat
/bash為例
建議首先卸載
自帶的openoffice
卸載方法
rpm
e
nodeps openoffice
rpm
e
nodeps openoffice
libs
rpm
e
nodeps openoffice
i
n
安裝 J
SDK
將 j
sdk
_
_
fcs
linux
i
rpm 安裝到 /usr/java 中
#rpm
ivh j
sdk
_
_
fcs
linux
i
rpm
下載
j
sdk
_
_
fcs
linux
i
rpm
安裝 StarOffice
/setup
提示安裝目標目錄時
建議選擇/starsuite
其中提示選擇Java虛擬機時
請點擊
選擇
然後選擇
/usr/java/j
sdk
目錄
確認即可
安裝product patch
/so
_
pp
bin
linux
bin
(解壓pp
/linux/
tar可得到本文件)
安裝過程中會發現提示starsuite
已安裝在/starsuite
上
確定
繼續安裝直到完成
將
bin安裝到 /staroffice
中
安裝 StarOffice SDK
為方便起見
將包安裝到 /usr/starsuite
中
然後將目錄改為 sdk
cp OOo_SDK_
alpha_LinuxIntel_odk
tar
gz
/usr/starsuite
cd /usr/starsuite
tar xvfz OOo_SDK_
alpha_Linux
Intel_odk
tar
gz
mv
_alpha_SDK sdk
修改/starsuite
/sdk/setsdkenv_unix
in
確保有下列四行
set SDK_HOME=/starsuite
/sdk
set OFFICE_HOME=/starsuite
set SDK_JAVA_HOME=/usr/java/j
sdk
set SDK_AUTO_DEPLOYMENT=YES
修改系統環境變量
(以redhat為例)在/etc/rc
d/rc
local最後加入下列語句
export CLASSPATH=
/starsuite
/program/classes/classes
jar:/starsuite
/program/classes/db
jar:/starsuite
/program/classes/java_uno
jar:/starsuite
/program/classes/juh
jar:/starsuite
/program/classes/jurt
jar:/starsuite
/program/classes/jut
jar:/starsuite
/program/classes/ridl
jar:/starsuite
/program/classes/sandbox
jar:/starsuite
/program/classes/unoil
jar:/starsuite
/program/classes/xt
jar
export PATH=$PATH:/usr/java/j
sdk
:
/starsuite
/program
修改 StarOffice
的 classpath
運行/starsuite
/program/soffice
在工具
>選項
>StarSuite
>安全
>ClassPath中填入
/starsuite
/program/classes/classes
jar:
/starsuite
/program/classes/db
jar:
/starsuite
/program/classes/java_uno
jar:
/starsuite
/program/classes/juh
jar:
/starsuite
/program/classes/jurt
jar:
/starsuite
/program/classes/jut
jar:
/starsuite
/program/classes/ridl
jar:
/starsuite
/program/classes/sandbox
jar:
/starsuite
/program/classes/unoil
jar:
/starsuite
/program/classes/xt
jar
安裝和配置完畢!
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25403.html