README
======

This demo shows the creation of a writer document and insert some text, a table and format
the text.

NOTE : If you don't want to use GNU make, you can compile by hand using javac.
Simply make sure, that all jar files, that can be found in the classes directory of
this development kit are within your CLASSPATH.

Run the java sample
-------------------

- 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 SWriter java example using the following connection string

        java <classpath> SWriter "socket,host=localhost,port=8100"

  The <classpath> must contain the ODK jar files and the examples output class directory.

- 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> SWriter "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 ).

     

