InstanceInspector
=================

The component InstanceInspector is an example of the Office Developer Kit.
The Office Developer Kit (ODK) is a set of tools, libraries, jar files, header
files and IDL files which are necessary to develop components for the
OpenOffice.org using the OpenOffice API and the OpenOffice.org component
technology UNO (Universal Network Objects). In order to use the make file,
you have to download the ODK from
http://www.openoffice.org/dev_docs/source/build_638/638_odk.html .
The following installation process you could find in detail on
http://whiteboard.openoffice.org/Inspector/install.html .

Compile the java samples
===========================

A GNU make version 1.79.1 or later is required in order to build the examples. GNU make
is available from

http://www.gnu.org,

it can be ftped via 

ftp://ftp.gnu.org/gnu/make


Make sure, the gnu-make-executable and java is included in your PATH variable. Switch
to e.g. the Inspector subdirectory and type make. You will then get help what to do to
build the examples on your platform.


Run the java samples
-------------------------

- Connecting to StarOffice : 

  The Office must be started in advance using the following command line option :
  
	soffice -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

	or on unix

	soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"

  The portnumber and the host can be modified if you like.

  Start the java example using the following connection string

  On Windows:
  java -classpath .;<Office path>/program/classes/jurt.jar;<Office path>/program/classes/ridl.jar;<Office path>/program/classes/sandbox.jar;<Office path>/program/classes/unoil.jar;<Office path>/program/classes/juh.jar Test "socket,host=localhost,port=8100"
  e.g.:
  java -classpath .;d:/office60/program/classes/jurt.jar;d:/office60/program/classes/ridl.jar;d:/office60/program/classes/sandbox.jar;d:/office60/program/classes/unoil.jar;d:/office60/program/classes/juh.jar Test "socket,host=localhost,port=8100"
  
  On Unix:
  java -classpath <Office path>/program/classes/juh.jar:<Office path>/program/classes/ridl.jar:<Office path>/program/classes/jurt.jar:<Office path>/program/classes/sandbox.jar:<Office path>/program/classes/unoil.jar:. Test "socket,host=localhost,port=8100"
  e.g.:
  java -classpath /local/user/office60/program/classes/juh.jar:/local/user/office60/program/classes/ridl.jar:/local/user/office60/program/classes/jurt.jar:/local/user/office60/program/classes/sandbox.jar:/local/user/office60/program/classes/unoil.jar:. Test "socket,host=localhost,port=8100"


- Connecting to a Sun ONE Webtop

  1. The file 'daemons2.jar' and 'portalapi.jar' must be part of the CLASSPATH when executing the example.
     It can be found at <WebtopDir>/program/classes .

  2. Start a portal client.
  
  3. Start a Java sample

     java <classpath> Test "portal,type=http,host=<portalhost>,port=<port>,service=soffice,user=<username>,password=<passwd>"

     The Port can be found in the file <WebtopDir>/share/etc/configrc
     (value GRIPServicesExternalPlainPort).

     You have to choose the SimplePort as default port on the administration pages
     in the webtop installation (this port defaults to 8090).
     Additionally, you have to modify the login.ini in the client 
     ( ConnectionType=plain ).
