diff options
author | Matthew Johnson <mjj29@hecate.trinhall.cam.ac.uk> | 2006-11-13 11:35:03 +0000 |
---|---|---|
committer | Matthew Johnson <mjj29@hecate.trinhall.cam.ac.uk> | 2006-11-13 11:35:03 +0000 |
commit | 4288991bb35a5f79a65e03ceb8ccf064f28072e3 (patch) | |
tree | 73aeb68b4f355bd82a27ef9fd69a86f64e4334b5 /INSTALL | |
parent | c80b9e02dcdb5684ca112172d7347d0ac09263c2 (diff) |
docs, bits and bobs
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -0,0 +1,49 @@ +D-Bus Java bindings installation guide +--------------------------------------- + +Prerequisites +------------- + +To compile and install these bindings you will need: + + A Java 1.5-compliant VM and Compiler (at time of writing + only the Sun VM and Compiler is known to work). + A C compiler and toolchain. + +To build and install the documentation you will also need: + + A LaTeX environment + latex2html + docbook + +Compiling the Bindings +---------------------- + +Simply invoke `make' in the top level directory to compile the bindings. +Depending on your JDK installation you may need to export JAVA_HOME +appropriately. + +The bindings will be installed into /usr/local by invoking `make install'. If +you wish to install them anywhere else then run make with the PREFIX variable +set to another location. More fine grained control of the installation +directories can be achieved using the BINDIR etc variables. For more detail +read the Makefile. + +Documentation for the bindings can be built with `make doc' and installed with +`make install-doc', with the same provisos for installation paths. + +Using the Bindings +------------------ + +The documentation which is by default installed into +/usr/local/share/doc/libdbus-java/ gives detailed instructions on how to call +D-Bus programs from Java using these bindings and a full API reference. + +To run a Java program using D-Bus you need to have the libdbus-java jar file in +your classpath and both the libdbus and libdbus-java shared object files in +your library path. With the default install paths you may have to do something +like: + +java -cp /usr/local/share/java/dbus.jar -Djava.library.path=/usr/lib:/usr/local/lib/jni + +You may also have to export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib/jni |