Sorry for the lenghtly message but I believe its worth as I see many posts asking for the same question. I had the same problem, so I asked Sun directly and this is their answer... (Good service ;-)) Thank you for allowing us to be of service to you. ------------------------------------------------------------- SUMMARY: StarOffice from StarDivision-5.1 SUGGESTED SOLUTION: At 11/22/99 11:26 AM we wrote - Information about Java for StarOffice 5.1 under Linux In StarOffice 5.1 for Linux, you can now benefit from Java and JavaScript (which has been implemented in Java internally). A Java Library is now available to support the required StarOffice native threads for the glib2. This library supports also the Java Native Interface (JNI). You can download the appropriate Java Installation here: http://www.blackdown.org/java-linux.html Choose one of the three following packages to download, each of them containing two archives. Prior to installing the archives, it is necessary to take a look at the Readme files. Make sure to follow the instructions carefully in order to properly install archive files. Java Runtime Environment 1. jre_1.1.7-v1a-glibc-x86.tar.gz 2. jre_1.1.7-v1a-glibc-x86-native.tar.gz or the minimal Java Runtime Environment 1. rt_1.1.7-v1a-glibc-x86.tar.gz 2. rt_1.1.7-v1a-glibc-x86-native.tar.gz or the Java Development Kit 1. jdk_1.1.7-v1a-glibc-x86.tar.gz 2. jdk_1.1.7-v1a-glibc-x86-native.tar.gz In order to activate Java, you must first modify the initialization file soffice. This can be found in the Office51/bin directory (Single User Installation), or in the corresponding server directory when using a Network Installation. In this case, only the user "root" can modify this file. In the soffice script file used to start StarOffice, the environment variable JAVA_HOME must be set to the Java Installation directory, e.g.: JAVA_HOME=/usr/jrell7_v1a; export JAVA_HOME and the LD_LIBRARY_PATH must be completed accordingly, i.e.: sd_arch=`uname -m` # z.B. 'i586 LD_LIBRARY_PATH=$JAVA_HOME/lib/$sd_arch/native_threads:$LD_LIBRARY_PATH export LD_LIBRARY_PATH In addition, you must activate Java under TOOLS-OPTIONS-BROWSER-OTHER, and select EXTRAS-OPTIONS-BROWSER-SCRIPTING TO ENABLE JAVASCRIPT Problems may occur when using the jdk The classes cannot be read in the ../lib/classes.zip directory with the jdk117_v1a. To avoid problems, you can re-archive the files after extracting them with the corresponding jar program. If the Java Development Kit is installed in the /usr/jdk117_v1a directory, for example, you will require the following commands. cd /usr/jdk117_v1a/lib unzip classes.zip mv classes.zip classes_old.zip /usr/jdk117_v1a/bin/jar -cvf classes.zip java sun sunw rm -r java sun sunw It is not sufficient to only extract the files! Alternatively, you can use the rt.jar file from the lib subdirectory. A java installation, based on the jre117 and the rt117 packages, does not require any adaptations. With the StarOffice, some particular fonts should be installed (StarBats and StarMath Fonts). These fonts are required as special characters for both, some numbering/bullet styles and the StarOffice equation editor StarMath. After installation, a new folder appears, containing all StarOffice related programs and files. Additionally, an "sversion.prefs" file has been created (corresponding to the sversion.ini file in the Windows version). INCIDENT DETAILS: Reference #: 991115-0114 Product: StarOffice - General Category: SUN/StarOffice Contact info: [EMAIL PROTECTED] Time created: 11/15/99 3:00 PM Last updated: 11/22/99 11:30 AM Elapsed time: 6 Days, 20 Hours Status: SO:StarApps Origin: Email Solution Category: Configuration Incident Driver: Applications I just hope this may be of assistence for those who want to use Java in StarOffice 5.1 Sergio Korlowsky
