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