README
======

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 DocumentSaver subdirectory and type make. You will then get help what to do to
build the examples on your platform.

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 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 DocumentSaver "<connection>" "<URL to load>" "<URL to save>"
  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 DocumentSaver "socket,host=localhost,port=8100;urp" "file:///f:/TestPrint.doc" "file:///f:/TestPrint.sxw"
  
  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:. DocumentSaver "<connection>" "<URL to load>" "<URL to save>"
  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:. DocumentSaver "socket,host=localhost,port=8100;urp" "file:///usr/local/test/TestPrint.doc" "file:///usr/local/test/TestPrint.sxw"


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

     

