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