StarSuite6.0 & sdk安装及配置指南-- linux篇 (以redhat8.0/bash为例)

发表于:2007-06-22来源:作者:点击数: 标签:
StarSuite6.0nbsp;sdk安装及配置指南 -- linux 篇(以redhat8.0/bash为例) 0.建议首先卸载8.0自带的openoffice,卸载方法 rpm-e--nodepsopenoffice rpm-e--nodepsopenoffice-libs rpm-e--nodepsopenoffice-i18n 1.安装J2SDK 将j2sdk-1_4_0-fcs-linux-i396.rpm

   
  StarSuite6.0 & sdk安装及配置指南
-- linux篇 (以redhat8.0/bash为例)

0. 建议首先卸载8.0自带的openoffice,卸载方法

rpm -e --nodeps openoffice

rpm -e --nodeps openoffice-libs
rpm -e --nodeps openoffice-i18n

1. 安装 J2SDK

将 j2sdk-1_4_0-fcs-linux-i396.rpm 安装到 /usr/java 中

#rpm -ivh j2sdk-1_4_0-fcs-linux-i386.rpm

下载:j2sdk-1_4_0-fcs-linux-i386.rpm

2. 安装 StarOffice 6.0

./setup

提示安装目标目录时,建议选择/starsuite6.0 
其中提示选择java虚拟机时,请点击”选择“,然后选择”/usr/java/j2sdk1.4.0“目录,
确认即可。

3. 安装product patch 2

./so-6_0-pp2-bin-linux.bin

(解压pp2/linux/112887-03.tar可得到本文件),安装过程中会发现提示starsuite6.0
已安装在/starsuite6.0上,确定,继续安装直到完成。将....bin安装到 /staroffice6.0 中

4. 安装 StarOffice SDK

为方便起见,将包安装到 /usr/starsuite6.0 中,然后将目录改为 sdk

cp OOo_SDK_1.0.1alpha_LinuxIntel_odk.tar.gz /usr/starsuite6.0
cd /usr/starsuite6.0
tar xvfz OOo_SDK_1.0.1alpha_LinuxIntel_odk.tar.gz
mv OpenOffice.org1.0.1_alpha_SDK sdk

5. 修改/starsuite6.0/sdk/setsdkenv_unix.in, 确保有下列四行

set SDK_HOME=/starsuite6.0/sdk
set OFFICE_HOME=/starsuite6.0
set SDK_JAVA_HOME=/usr/java/j2sdk1.4.0
set SDK_AUTO_DEPLOYMENT=YES

7. 修改系统环境变量

(以redhat为例)
在/etc/rc.d/rc.local最后加入下列语句

在/etc/rc.d/rc.local最后加入下列语句
export CLASSPATH=/starsuite6.0/program/classes/classes.jar:
/starsuite6.0/program/classes/db.jar:
/starsuite6.0/program/classes/java_uno.jar:
/starsuite6.0/program/classes/juh.jar:
/starsuite6.0/program/classes/jurt.jar:
/starsuite6.0/program/classes/jut.jar:
/starsuite6.0/program/classes/ridl.jar:
/starsuite6.0/program/classes/sandbox.jar:
/starsuite6.0/program/classes/unoil.jar:
/starsuite6.0/program/classes/xt.jar
export PATH=$PATH:/usr/java/j2sdk1.4.0:/starsuite6.0/program

8. 修改 StarOffice 6.0 的 classpath

运行/starsuite6.0/program/soffice,在
工具->选项->StarSuite->安全->ClassPath
中填入

/starsuite6.0/program/classes/classes.jar:
/starsuite6.0/program/classes/db.jar:
/starsuite6.0/program/classes/java_uno.jar:
/starsuite6.0/program/classes/juh.jar:
/starsuite6.0/program/classes/jurt.jar:
/starsuite6.0/program/classes/jut.jar:
/starsuite6.0/program/classes/ridl.jar:
/starsuite6.0/program/classes/sandbox.jar:
/starsuite6.0/program/classes/unoil.jar:
/starsuite6.0/program/classes/xt.jar

安装和配置完毕!

原文转自:http://www.ltesting.net