Category:Getting Started
From Jini.org
| Get the Jini Starter Kit | ||
| Windows | Download |
| Linux | Download |
| Mac OS X | Download |
| Java | Download |
| Solaris | Download |
| Zip | Download | |
| Released under the Apache 2.0 License | ||
So you've read Intro to Jini and you want to get started using it? You've come to the right place!
Contents |
Download Jini
If you haven't already, download the Jini Starter Kit from the sidebar or the Jini Starter Kit page.
Your first Service
Once Jini is installed, Dan Creswell has posted an article on Creating a JINI Service.
Warren Strange has posted a blog Jini Made Easier that explains how to create and deploy an simple service using the Seven Jini Service Container and for a full tutorial about creating Jini services have a look at the Developer Guide.
There is also a simple HelloWorld example along with sample configuration scripts that is created if you performed the jini install with examples. Detailed explanation of the example and its configuration scripts can be found in $JINI_HOME/index.html
Helpful Toolkits
The Startnow Project on java.net provides several different tools for making service creation and access easier.
The Glyph Project on java.net provides an annotation based facility for creating Jini services.
Jini Containers
Containers are an alternate way to deploy Jini based applications; usually they offer a simplified programming model. You can find a list of available containers in the "Links" page.
Troubleshooting
Troubleshooting information may be found at Troubleshooting Jini
Linux Jini Starter Kit installation
In some strange cases there is a problem caused due to incompatibility of the installer's Java Run-time Environment with certain system libraries.
This results in the following error messages when calling the jini_2_1.bin :
awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory /jdks/64/jdk1.5.0_05/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
- Open the bin installer file in an hexadecimal editor (such as hexedit).
- Look for the line
export LD_ASSUME_KERNEL=2.2.5
- and replace it with
#xport LD_ASSUME_KERNEL=2.2.5
- Save the file and lauch. It should work
The same works for the /jini2_1/installverify/support/launch-all script.
References
Further information is available at Jan Newmarch's very excellent Guide to Jini Technologies. This is published as a hardback book by APress as Foundations of Jini 2 Programming ISBN 1-59059-716-8
This category currently contains no pages or media.





