1*e76eebc6SAndrew Rist#************************************************************** 2*e76eebc6SAndrew Rist# 3*e76eebc6SAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*e76eebc6SAndrew Rist# or more contributor license agreements. See the NOTICE file 5*e76eebc6SAndrew Rist# distributed with this work for additional information 6*e76eebc6SAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*e76eebc6SAndrew Rist# to you under the Apache License, Version 2.0 (the 8*e76eebc6SAndrew Rist# "License"); you may not use this file except in compliance 9*e76eebc6SAndrew Rist# with the License. You may obtain a copy of the License at 10*e76eebc6SAndrew Rist# 11*e76eebc6SAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*e76eebc6SAndrew Rist# 13*e76eebc6SAndrew Rist# Unless required by applicable law or agreed to in writing, 14*e76eebc6SAndrew Rist# software distributed under the License is distributed on an 15*e76eebc6SAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e76eebc6SAndrew Rist# KIND, either express or implied. See the License for the 17*e76eebc6SAndrew Rist# specific language governing permissions and limitations 18*e76eebc6SAndrew Rist# under the License. 19*e76eebc6SAndrew Rist# 20*e76eebc6SAndrew Rist#************************************************************** 21cdf0e10cSrcweir 22cdf0e10cSrcweir 23cdf0e10cSrcweirOverview of URE installation 24cdf0e10cSrcweir----------------------------- 25cdf0e10cSrcweir 26cdf0e10cSrcweirLinux x86, Solaris x86, and Solaris SPARC: 27cdf0e10cSrcweir 28cdf0e10cSrcweir/opt/openoffice.org/ure/LICENSE 29cdf0e10cSrcweir/opt/openoffice.org/ure/THIRDPARTYLICENSEREADME.html 30cdf0e10cSrcweir/opt/openoffice.org/ure/README 31cdf0e10cSrcweir/opt/openoffice.org/ure/bin/uno 32cdf0e10cSrcweir/opt/openoffice.org/ure/bin/regcomp 33cdf0e10cSrcweir/opt/openoffice.org/ure/bin/regmerge 34cdf0e10cSrcweir/opt/openoffice.org/ure/bin/regview 35cdf0e10cSrcweir/opt/openoffice.org/ure/bin/javaldx 36cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_cppu.so.3 37cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_cppuhelpergcc3.so.3 [Linux x86 only] 38cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_cppuhelperC52.so.3 [Solaris only] 39cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_purpenvhelpergcc3.so.3 [Linux x86 only] 40cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_purpenvhelperC52.so.3 [Solaris only] 41cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_sal.so.3 42cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_salhelpergcc3.so.3 [Linux x86 only] 43cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libuno_salhelperC52.so.3 [Solaris only] 44cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libstlport_gcc.so [Linux x86 only] 45cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libstlport_sunpro.so [Solaris only] 46cdf0e10cSrcweir/opt/openoffice.org/ure/share/java/unoloader.jar 47cdf0e10cSrcweir/opt/openoffice.org/ure/share/java/juh.jar 48cdf0e10cSrcweir/opt/openoffice.org/ure/share/java/jurt.jar 49cdf0e10cSrcweir/opt/openoffice.org/ure/share/java/ridl.jar 50cdf0e10cSrcweir/opt/openoffice.org/ure/share/misc/types.rdb 51cdf0e10cSrcweir/opt/openoffice.org/ure/share/misc/services.rdb 52cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libxml2.so.2 [external] 53cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libgcc_s.so.1 [external; Linux x86 only] 54cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libstdc++.so.6 [external; Linux x86 only] 55cdf0e10cSrcweir/opt/openoffice.org/ure/bin/startup.sh [private] 56cdf0e10cSrcweir/opt/openoffice.org/ure/bin/uno.bin [private] 57cdf0e10cSrcweir/opt/openoffice.org/ure/bin/regcomp.bin [private] 58cdf0e10cSrcweir/opt/openoffice.org/ure/lib/unorc [private] 59cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libreg.so.3 [private] 60cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libstore.so.3 [private] 61cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libxmlreader.so [private] 62cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjvmaccessgcc3.so.3 [private; Linux x86 only] 63cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjvmaccessC52.so.3 [private; Solaris only] 64cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjvmfwk.so.3 [private] 65cdf0e10cSrcweir/opt/openoffice.org/ure/lib/sunjavaplugin.so [private] 66cdf0e10cSrcweir/opt/openoffice.org/ure/lib/JREProperties.class [private] 67cdf0e10cSrcweir/opt/openoffice.org/ure/lib/jvmfwk3rc [private] 68cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libgcc3_uno.so [private; Linux x86 only] 69cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libsunpro5_uno.so [private; Solaris only] 70cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjava_uno.so [private] 71cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libunsafe_uno_uno.so [private] 72cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libaffine_uno_uno.so [private] 73cdf0e10cSrcweir/opt/openoffice.org/ure/lib/liblog_uno_uno.so [private] 74cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjpipe.so [private] 75cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjuh.so [private] 76cdf0e10cSrcweir/opt/openoffice.org/ure/lib/libjuhx.so [private] 77cdf0e10cSrcweir/opt/openoffice.org/ure/lib/acceptor.uno.so [private] 78cdf0e10cSrcweir/opt/openoffice.org/ure/lib/binaryurp.uno.so [private] 79cdf0e10cSrcweir/opt/openoffice.org/ure/lib/bootstrap.uno.so [private] 80cdf0e10cSrcweir/opt/openoffice.org/ure/lib/connector.uno.so [private] 81cdf0e10cSrcweir/opt/openoffice.org/ure/lib/introspection.uno.so [private] 82cdf0e10cSrcweir/opt/openoffice.org/ure/lib/invocadapt.uno.so [private] 83cdf0e10cSrcweir/opt/openoffice.org/ure/lib/invocation.uno.so [private] 84cdf0e10cSrcweir/opt/openoffice.org/ure/lib/javaloader.uno.so [private] 85cdf0e10cSrcweir/opt/openoffice.org/ure/lib/javavm.uno.so [private] 86cdf0e10cSrcweir/opt/openoffice.org/ure/lib/namingservice.uno.so [private] 87cdf0e10cSrcweir/opt/openoffice.org/ure/lib/proxyfac.uno.so [private] 88cdf0e10cSrcweir/opt/openoffice.org/ure/lib/reflection.uno.so [private] 89cdf0e10cSrcweir/opt/openoffice.org/ure/lib/streams.uno.so [private] 90cdf0e10cSrcweir/opt/openoffice.org/ure/lib/textinstream.uno.so [private] 91cdf0e10cSrcweir/opt/openoffice.org/ure/lib/textoutstream.uno.so [private] 92cdf0e10cSrcweir/opt/openoffice.org/ure/lib/stocservices.uno.so [private] 93cdf0e10cSrcweir/opt/openoffice.org/ure/lib/uuresolver.uno.so [private] 94cdf0e10cSrcweir/opt/openoffice.org/ure/share/java/java_uno.jar [private] 95cdf0e10cSrcweir/opt/openoffice.org/ure/share/misc/javavendors.xml [private] 96cdf0e10cSrcweir 97cdf0e10cSrcweirWindows: 98cdf0e10cSrcweir 99cdf0e10cSrcweirProgram Files\URE\LICENSE 100cdf0e10cSrcweirProgram Files\URE\THIRDPARTYLICENSEREADME.html 101cdf0e10cSrcweirProgram Files\URE\README 102cdf0e10cSrcweirProgram Files\URE\bin\uno.exe 103cdf0e10cSrcweirProgram Files\URE\bin\regcomp.exe 104cdf0e10cSrcweirProgram Files\URE\bin\regmerge.exe 105cdf0e10cSrcweirProgram Files\URE\bin\regview.exe 106cdf0e10cSrcweirProgram Files\URE\bin\cppu3.dll 107cdf0e10cSrcweirProgram Files\URE\bin\cppuhelper3MSC.dll 108cdf0e10cSrcweirProgram Files\URE\bin\purpenvhelper3MSC.dll 109cdf0e10cSrcweirProgram Files\URE\bin\sal3.dll 110cdf0e10cSrcweirProgram Files\URE\bin\salhelper3MSC.dll 111cdf0e10cSrcweirProgram Files\URE\bin\stlport_vc7145.dll 112cdf0e10cSrcweirProgram Files\URE\java\unoloader.jar 113cdf0e10cSrcweirProgram Files\URE\java\juh.jar 114cdf0e10cSrcweirProgram Files\URE\java\jurt.jar 115cdf0e10cSrcweirProgram Files\URE\java\ridl.jar 116cdf0e10cSrcweirProgram Files\URE\misc\types.rdb 117cdf0e10cSrcweirProgram Files\URE\misc\services.rdb 118cdf0e10cSrcweirProgram Files\URE\bin\libxml2.dll [external] 119cdf0e10cSrcweirProgram Files\URE\bin\uno.ini [private] 120cdf0e10cSrcweirProgram Files\URE\bin\reg3.dll [private] 121cdf0e10cSrcweirProgram Files\URE\bin\store3.dll [private] 122cdf0e10cSrcweirProgram Files\URE\bin\xmlreader.dll [private] 123cdf0e10cSrcweirProgram Files\URE\bin\jvmaccess3MSC.dll [private] 124cdf0e10cSrcweirProgram Files\URE\bin\jvmfwk3.dll [private] 125cdf0e10cSrcweirProgram Files\URE\bin\sunjavaplugin.dll [private] 126cdf0e10cSrcweirProgram Files\URE\bin\JREProperties.class [private] 127cdf0e10cSrcweirProgram Files\URE\bin\jvmfwk3.ini [private] 128cdf0e10cSrcweirProgram Files\URE\bin\msci_uno.dll [private] 129cdf0e10cSrcweirProgram Files\URE\bin\java_uno.dll [private] 130cdf0e10cSrcweirProgram Files\URE\bin\cli_uno.dll [private] 131cdf0e10cSrcweirProgram Files\URE\bin\unsafe_uno_uno.dll [private] 132cdf0e10cSrcweirProgram Files\URE\bin\affine_uno_uno.dll [private] 133cdf0e10cSrcweirProgram Files\URE\bin\log_uno_uno.dll [private] 134cdf0e10cSrcweirProgram Files\URE\bin\jpipe.dll [private] 135cdf0e10cSrcweirProgram Files\URE\bin\jpipx.dll [private] 136cdf0e10cSrcweirProgram Files\URE\bin\juh.dll [private] 137cdf0e10cSrcweirProgram Files\URE\bin\juhx.dll [private] 138cdf0e10cSrcweirProgram Files\URE\bin\acceptor.uno.dll [private] 139cdf0e10cSrcweirProgram Files\URE\bin\binaryurp.uno.dll [private] 140cdf0e10cSrcweirProgram Files\URE\bin\bootstrap.uno.dll [private] 141cdf0e10cSrcweirProgram Files\URE\bin\connector.uno.dll [private] 142cdf0e10cSrcweirProgram Files\URE\bin\introspection.uno.dll [private] 143cdf0e10cSrcweirProgram Files\URE\bin\invocadapt.uno.dll [private] 144cdf0e10cSrcweirProgram Files\URE\bin\invocation.uno.dll [private] 145cdf0e10cSrcweirProgram Files\URE\bin\javaloader.uno.dll [private] 146cdf0e10cSrcweirProgram Files\URE\bin\javavm.uno.dll [private] 147cdf0e10cSrcweirProgram Files\URE\bin\namingservice.uno.dll [private] 148cdf0e10cSrcweirProgram Files\URE\bin\proxyfac.uno.dll [private] 149cdf0e10cSrcweirProgram Files\URE\bin\reflection.uno.dll [private] 150cdf0e10cSrcweirProgram Files\URE\bin\streams.uno.dll [private] 151cdf0e10cSrcweirProgram Files\URE\bin\textinstream.uno.dll [private] 152cdf0e10cSrcweirProgram Files\URE\bin\textoutstream.uno.dll [private] 153cdf0e10cSrcweirProgram Files\URE\bin\stocservices.uno.dll [private] 154cdf0e10cSrcweirProgram Files\URE\bin\uuresolver.uno.dll [private] 155cdf0e10cSrcweirProgram Files\URE\bin\uwinapi.dll [private] 156cdf0e10cSrcweirProgram Files\URE\java\java_uno.jar [private] 157cdf0e10cSrcweirProgram Files\URE\misc\javavendors.xml [private] 158cdf0e10cSrcweir 159cdf0e10cSrcweir%windir%\assembly\cli_basetypes.dll [GAC] 160cdf0e10cSrcweir%windir%\assembly\cli_ure.dll [GAC] 161cdf0e10cSrcweir%windir%\assembly\cli_uretypes.dll [GAC] 162cdf0e10cSrcweir%windir%\assembly\cli_cppuhelper.dll [GAC] 163cdf0e10cSrcweir%windir%\assembly\policy.1.0.cli_basetypes.dll [GAC] 164cdf0e10cSrcweir%windir%\assembly\policy.1.0.cli_ure.dll [GAC] 165cdf0e10cSrcweir%windir%\assembly\policy.1.0.cli_uretypes.dll [GAC] 166cdf0e10cSrcweir%windir%\assembly\policy.1.0.cli_cppuhelper.dll [GAC] 167cdf0e10cSrcweir 168cdf0e10cSrcweirFiles marked as [external] are included in the URE installation because the URE 169cdf0e10cSrcweirneeds them and it cannot be guaranteed that they are available on a given 170cdf0e10cSrcweirsystem. Applications using the URE may need those files too, so they are made 171cdf0e10cSrcweiravailable as non-private files of the URE installation. However, in an ideal 172cdf0e10cSrcweirworld, those files would not need to be included in the URE installation. 173cdf0e10cSrcweir 174cdf0e10cSrcweirFiles marked as [private] are private to the URE installation. To avoid 175cdf0e10cSrcweirstability issues, applications that use the URE should not access the 176cdf0e10cSrcweirfunctionality of these files. 177cdf0e10cSrcweir 178cdf0e10cSrcweirFiles marked as [GAC] are installed in the Global Assembly Cache on Windows. The 179cdf0e10cSrcweirfile path reflects the path as seen in the Explorer with the Assembly 180cdf0e10cSrcweirCache Viewer Tool (Shfusion.dll) installed. The actual paths are different. 181cdf0e10cSrcweir 182cdf0e10cSrcweir 183cdf0e10cSrcweirPublic Files in a URE Installation 184cdf0e10cSrcweir---------------------------------- 185cdf0e10cSrcweir 186cdf0e10cSrcweirA URE installation contains the following public files: 187cdf0e10cSrcweir 188cdf0e10cSrcweir- uno is the executable file that runs UNO components. For more details, see 189cdf0e10cSrcweirthe SDK Developer's Guide. 190cdf0e10cSrcweir 191cdf0e10cSrcweir- regcomp, regmerge, and regview are tools that work with binary registries that 192cdf0e10cSrcweircontain UNO type or UNO service information. For more details, see the SDK 193cdf0e10cSrcweirDeveloper's Guide. 194cdf0e10cSrcweir 195cdf0e10cSrcweir- javaldx is a helper program on Linux x86, Solaris x86, and Solaris SPARC that 196cdf0e10cSrcweirenables Java executables to use a Java VM, such as the Sun JDK/JRE. Executables 197cdf0e10cSrcweirsuch as uno and regcomp run this helper automatically. 198cdf0e10cSrcweir 199cdf0e10cSrcweir- cppu, cppuhelper, purpenvhelper, sal, and salhelper are the public C++ UNO 200cdf0e10cSrcweirruntime dynamic libraries that client code can call. For details on the 201cdf0e10cSrcweirfunctionality that these libraries offer, see the "C++ Reference" section of the 202cdf0e10cSrcweirSDK HTML documentation. The corresponding C++ header files are not in the URE, 203cdf0e10cSrcweirbut rather in the SDK. 204cdf0e10cSrcweir 205cdf0e10cSrcweir- stlport is the dynamic library of STLport 4.5, which is used in the public 206cdf0e10cSrcweirinterface of cppuhelper and salhelper, and thus also has to be part of the 207cdf0e10cSrcweirpublic interface of the URE. The corresponding C++ header files are not in the 208cdf0e10cSrcweirURE, but rather in the SDK. 209cdf0e10cSrcweir 210cdf0e10cSrcweir- unoloader.jar, juh.jar, jurt.jar, and ridl.jar are the public Java UNO runtime 211cdf0e10cSrcweirJava[tm] Archives (JARs) that client code can call. For details on the 212cdf0e10cSrcweirfunctionality that these files offer, see the "Java UNO Runtime Reference" 213cdf0e10cSrcweirsection of the SDK HTML documentation. 214cdf0e10cSrcweir 215cdf0e10cSrcweir- types.rdb and services.rdb are preconfigured UNO type and service registries. 216cdf0e10cSrcweirFor more details, see the "Deploying a URE" section of this README. 217cdf0e10cSrcweir 218cdf0e10cSrcweir 219cdf0e10cSrcweirDeploying a URE 220cdf0e10cSrcweir--------------- 221cdf0e10cSrcweir 222cdf0e10cSrcweirBy default, the URE is installed in /opt/openoffice.org/ure on Linux x86, 223cdf0e10cSrcweirSolaris x86, and Solaris SPARC, and in Program Files\URE on Windows. If you 224cdf0e10cSrcweirwant, you can override this location when you install the URE, for example, with 225cdf0e10cSrcweirrpm --relocate on Linux. The URE is designed so that multiple instances of the 226cdf0e10cSrcweirURE can coexist on a single system in different locations. 227cdf0e10cSrcweir 228cdf0e10cSrcweirOn Windows, the path to the installed URE is stored in the registry under the 229cdf0e10cSrcweirpath "HKEY_CLASSES_ROOT\Software\OpenOffice.org\URE" and key "Path". 230cdf0e10cSrcweir 231cdf0e10cSrcweir 232cdf0e10cSrcweirUNO Deployment Variables 233cdf0e10cSrcweir------------------------ 234cdf0e10cSrcweir 235cdf0e10cSrcweirThe URE installation is preconfigured with several UNO types and UNO services. 236cdf0e10cSrcweirThe available types and services are listed in the types.rdb and services.rdb 237cdf0e10cSrcweirfiles respectively. The location of these files is stored by two UNO deployment 238cdf0e10cSrcweirvariables, namely UNO_TYPES and UNO_SERVICES. These variables are set up by a 239cdf0e10cSrcweirunorc or uno.ini that is private to the URE installation. This private file 240cdf0e10cSrcweiralso contains the private deployment variables URE_INTERNAL_LIB_DIR, 241cdf0e10cSrcweirURE_INTERNAL_JAVA_DIR, and URE_INTERNAL_JAVA_CLASSPATH, which are required by 242cdf0e10cSrcweirthe URE. 243cdf0e10cSrcweir 244cdf0e10cSrcweirThe UNO_TYPES and UNO_SERVICES variables automatically search the following 245cdf0e10cSrcweirlocations for types.rdb and services.rdb files: 246cdf0e10cSrcweir 247cdf0e10cSrcweirLinux x86, Solaris x86, and Solaris SPARC: 248cdf0e10cSrcweir 249cdf0e10cSrcweir- <URE installation>/share/misc/ types.rdb and services.rdb, respectively 250cdf0e10cSrcweir- /etc/opt/ure/ types.rdb and services.rdb, respectively 251cdf0e10cSrcweir- ~/.ure/ types.rdb and services.rdb, respectively 252cdf0e10cSrcweir- any URLs listed in the public deployment variables URE_MORE_TYPES and 253cdf0e10cSrcweir URE_MORE_SERVICES, respectively 254cdf0e10cSrcweir 255cdf0e10cSrcweirWindows: 256cdf0e10cSrcweir 257cdf0e10cSrcweir- <URE installation>\misc\ types.rdb and services.rdb, respectively 258cdf0e10cSrcweir- Documents and Settings\<User Name>\Application Data\URE\ types.rdb and 259cdf0e10cSrcweir services.rdb, respectively 260cdf0e10cSrcweir- any URLs listed in the public deployment variables URE_MORE_TYPES and 261cdf0e10cSrcweir URE_MORE_SERVICES, respectively 262cdf0e10cSrcweir 263cdf0e10cSrcweirNOTE: The URE on Windows does not support a system-wide deployment of additional 264cdf0e10cSrcweirtypes.rdb and services.rdb files. That is, you cannot store additional 265cdf0e10cSrcweirtypes.rdb and services.rdb files in a Documents and Settings\All 266cdf0e10cSrcweirUsers\Application Data\URE directory. 267cdf0e10cSrcweir 268cdf0e10cSrcweirThe Java UNO environment needs type information in the form of Java class files 269cdf0e10cSrcweirinstead of rdb files. Additional types are searched for in any URLs listed in 270cdf0e10cSrcweirthe public deployment variable URE_MORE_JAVA_TYPES. 271cdf0e10cSrcweir 272cdf0e10cSrcweirFor details on how to override the UNO deployment variables, see the SDK 273cdf0e10cSrcweirDeveloper's Guide or go to http://udk.openoffice.org/common/man/concept/ 274cdf0e10cSrcweirmicro_deployment.html. 275cdf0e10cSrcweir 276cdf0e10cSrcweirIf you want to deploy additional UNO types and services, use regcomp. 277cdf0e10cSrcweir 278cdf0e10cSrcweirCAUTION: Do not deploy these types and services to the types.rdb and 279cdf0e10cSrcweirservices.rdb in the URE installation. 280cdf0e10cSrcweir 281cdf0e10cSrcweir 282cdf0e10cSrcweirURE Java Framework 283cdf0e10cSrcweir------------------ 284cdf0e10cSrcweir 285cdf0e10cSrcweirWhen a URE executable, such as uno, starts a Java VM, the URE Java Framework 286cdf0e10cSrcweirsearches for a suitable JDK/JRE installation. For more information on the URE 287cdf0e10cSrcweirJava Framework, go to http://udk.openoffice.org/common/man/spec/ 288cdf0e10cSrcweirjavavendorextension.sxw. The private javavendors.xml file in a URE installation 289cdf0e10cSrcweirprovides preconfigured support for various JDK/JRE versions. The private 290cdf0e10cSrcweirjvmfwk3rc or jvmfwk3.ini file specifies the location of a suitable JDK/JRE 291cdf0e10cSrcweirinstallation. When an executable tries to start a Java VM, the URE searches the 292cdf0e10cSrcweirrelevant Java settings file for information on a suitable JDK/JRE version. 293cdf0e10cSrcweir 294cdf0e10cSrcweirNOTE: On any platform, you can delete the javasettings_${_OS}_${_ARCH}.xml file 295cdf0e10cSrcweirif the file contains problematic stale data. 296cdf0e10cSrcweir 297cdf0e10cSrcweirBy default, the URE searches for a Java settings file in the following 298cdf0e10cSrcweirlocations: 299cdf0e10cSrcweir 300cdf0e10cSrcweirLinux x86, Solaris x86, and Solaris SPARC: 301cdf0e10cSrcweir 302cdf0e10cSrcweir- /etc/opt/ure/javasettings_${_OS}_${_ARCH}.xml 303cdf0e10cSrcweir- ~/.ure/javasettings_${_OS}_${_ARCH}.xml 304cdf0e10cSrcweir 305cdf0e10cSrcweirNOTE: If these files do not contain information about a JDK/JRE, the URE 306cdf0e10cSrcweirsearches for a suitable JDK/JRE installation and stores the relevant information 307cdf0e10cSrcweirin the ~/.ure/javasettings_${_OS}_${_ARCH}.xml file. If you want all users to 308cdf0e10cSrcweiraccess the same JDK/JRE, log on as root and copy an existing 309cdf0e10cSrcweir~/.ure/javasettings_${_OS}_${_ARCH}.xml to 310cdf0e10cSrcweir/etc/opt/ure/javasettings_${_OS}_${_ARCH}.xml. 311cdf0e10cSrcweir 312cdf0e10cSrcweirWindows: 313cdf0e10cSrcweir 314cdf0e10cSrcweir- Documents and Settings\<User Name>\Application 315cdf0e10cSrcweir Data\URE\javasettings_${_OS}_${_ARCH}.xml 316cdf0e10cSrcweir 317cdf0e10cSrcweirNOTE: If this file does not contain information about a JDK/JRE, the URE 318cdf0e10cSrcweirsearches for a suitable JDK/JRE installation and stores the relevant information 319cdf0e10cSrcweirin the Documents and Settings\<User Name>\Application 320cdf0e10cSrcweirData\URE\javasettings_${_OS}_${_ARCH}.xml file. The URE on Windows does not 321cdf0e10cSrcweirby default support a system-wide deployment of the Java settings file. That is, 322cdf0e10cSrcweiryou cannot store the file in a Documents and Settings\All Users\Application 323cdf0e10cSrcweirData\URE directory. 324cdf0e10cSrcweir 325cdf0e10cSrcweirYou can override these paths by setting the URE_OVERRIDE_JAVA_JFW_SHARED_DATA 326cdf0e10cSrcweirand URE_OVERRIDE_JAVA_JFW_USER_DATA deployment variables. You can also use the 327cdf0e10cSrcweirUNO_JAVA_JFW_JREHOME deployment variable to specify the location of a JDK/JRE 328cdf0e10cSrcweirinstallation. For more information on this variable, see 329cdf0e10cSrcweirhttp://udk.openoffice.org/common/man/spec/javavendorextension.sxw. 330cdf0e10cSrcweir 331cdf0e10cSrcweirThe URE allows clients to extend the content of UNO_JAVA_JFW_CLASSPATH_URLS (see 332cdf0e10cSrcweirhttp://udk.openoffice.org/common/man/spec/javavendorextension.sxw): The content 333cdf0e10cSrcweirof the public deployment variable URE_MORE_JAVA_CLASSPATH_URLS, if set, is 334cdf0e10cSrcweiradded to the end of the URE's UNO_JAVA_JFW_CLASSPATH_URLS list. 335cdf0e10cSrcweir 336cdf0e10cSrcweirYou might experience problems in an SDK environment that uses different JDK/JRE 337cdf0e10cSrcweirversions for the SDK and the URE. This problem arises when the OO_SDK_JAVA_HOME 338cdf0e10cSrcweirSDK environment variable specifies a different Java VM than the Java VM that is 339cdf0e10cSrcweirused in the URE Java Framework. See the "Installation Guide" section of the SDK 340cdf0e10cSrcweirHTML documentation to find out how to set the OO_SDK_JAVA_HOME environment 341cdf0e10cSrcweirvariable. 342cdf0e10cSrcweir 343cdf0e10cSrcweir 344cdf0e10cSrcweirGNU Compiler Collection on Linux x86 345cdf0e10cSrcweir------------------------------------ 346cdf0e10cSrcweir 347cdf0e10cSrcweirOn Linux x86, the URE uses libgcc_s.so.1 to run binary UNO components that were 348cdf0e10cSrcweircompiled with the GNU Compiler Collection (GCC). The libgcc_s.so.1 corresponds 349cdf0e10cSrcweirto GCC 3.4.1 as built on a glibc 2.2.4 system. To avoid GCC compatibility 350cdf0e10cSrcweirissues, use the same GCC version (or later) when you compile the UNO binaries. 351cdf0e10cSrcweirOtherwise, use LD_PRELOAD to replace the libgcc_s.so.1 in URE with a matching 352cdf0e10cSrcweirversion. 353cdf0e10cSrcweir 354cdf0e10cSrcweir 355cdf0e10cSrcweirC++ and Java UNO Components 356cdf0e10cSrcweir--------------------------- 357cdf0e10cSrcweir 358cdf0e10cSrcweirC++ UNO components run from within the uno executable can depend on an 359cdf0e10cSrcweirenvironment in which the public C++ UNO runtime dynamic libraries (cppu, 360cdf0e10cSrcweircppuhelper, purpenvhelper, sal, salhelper, stlport) and the external dynamic 361cdf0e10cSrcweirlibraries (libxml2 etc.) are already available (that is, on Linux x86, Solaris 362cdf0e10cSrcweirx86, and Solaris SPARC, a component dynamic library need not make sure that the 363cdf0e10cSrcweirUNO runtime dynamic libraries it needs can be found on its RPATH). 364cdf0e10cSrcweir 365cdf0e10cSrcweirSimilarly, Java UNO components can depend on an environment in which the public 366cdf0e10cSrcweirJava UNO runtime JARs are already available (that is, a component JAR need not 367cdf0e10cSrcweirlist in its manifest Class-Path the UNO runtime JARs it needs). 368cdf0e10cSrcweir 369cdf0e10cSrcweirIf a Java UNO component requires additional UNO types, use the UNO-Type-Path 370cdf0e10cSrcweirmanifest entry to specify the location of the UNO types. The UNO-Type-Path is 371cdf0e10cSrcweirsimilar to the Class-Path manifest entry and can contain URLs of JARs and 372cdf0e10cSrcweirdirectories that contain the Java classes that represent additional UNO types. 373cdf0e10cSrcweirThe UnoClassLoader evaluates the UNO-Type-Path manifest entry to ensure that the 374cdf0e10cSrcweiradditional UNO types are available to the Java UNO environment. 375cdf0e10cSrcweir 376cdf0e10cSrcweirThe UNO-Type-Path can have the following entries: 377cdf0e10cSrcweir 378cdf0e10cSrcweir- UNO-Type-Path: 379cdf0e10cSrcweirCurrent JAR does not contain UNO types. 380cdf0e10cSrcweir 381cdf0e10cSrcweir- UNO-Type-Path: <> 382cdf0e10cSrcweirCurrent JAR contains UNO types. 383cdf0e10cSrcweir 384cdf0e10cSrcweir- UNO-Type-Path: any/other/jar.jar yet/another/jar.jar 385cdf0e10cSrcweirCurrent JAR brings other JARs that contain UNO types. 386cdf0e10cSrcweir 387cdf0e10cSrcweir- UNO-Type-Path: any/other/jar.jar <> yet/another/jar.jar 388cdf0e10cSrcweirCurrent JAR and other JARs that the current JARs uses contain UNO types. 389cdf0e10cSrcweir 390cdf0e10cSrcweirNOTE: If you do not include the UNO-Type-Path manifest entry, the URE assumes 391cdf0e10cSrcweirthat the current JAR contains UNO types. 392cdf0e10cSrcweir 393cdf0e10cSrcweirIf a Java application requires the Java UNO environment, the UnoClassLoader must 394cdf0e10cSrcweirbe set up to load the relevant Java classes. For example, Runner.java in the 395cdf0e10cSrcweiruretest bundle is packed as runner.jar, which the makefiles use to launch the 396cdf0e10cSrcweirjavaclient.jar application. For more information, see 397cdf0e10cSrcweircom.sun.star.lib.unoloader.UnoClassLoader and 398cdf0e10cSrcweircom.sun.star.lib.unoloader.UnoLoader in the "Java UNO Runtime Reference" section 399cdf0e10cSrcweirof the SDK HTML documentation. 400