JXTA Tutorial: JXTA Installation and Configuration
Goal
The aim of this lab is to provide hands-on experience with
installation of JXTA and configuration and execution of JXTA
applications.
The lab is divided into three separate sections:
- Download and installation of the JXTA system and the JXTA
Companion Tutorial 2.5 Programs.
- Installation and configuration of a simple JXTA
application (from the JXTA Companion Tutorial 2.5
Programs).
- Installation and configuration of an advanced JXTA
application that demonstrates the use of the JxtaSocket API.
JXTA Installation
In order to install JXTA, you must first downlad the relevant
files from the JXTA project website (java.net/projects/jxta). You should also
download the Project
JXTA v2.5: Java[tm] Programmer's Guide so that you may
consult it later.
Downloading Files
Releases from the JXTA project can be downloaded from
http://download.jxta.org/build/release, we suggest that you
download the latest version
2.5. You may either select jar files individually
or download the myjxta2 zip archive (jxta-myjxta-2.5.zip),
which contains all files that are needed to install JXTA.
You must also download the programs described in the Project
JXTA 2.5: Java[tm] Programmer's Guide from (
www.jxta.org/ProgGuideExamples.zip)
.
Unpacking the Installation
Create a directory to be used for this tutorial (this directory
will probably become the root for your development of jxta
applications, so we will refer to this directory as the
jxtaroot directory). Unpack the
"http://download.java.net/jxta/jxta-jxse/2.5/jxse-tutorials-src-2.5.zip" file into this directory. This
will create a subdirectory called "jxse-tutorials-2.5".
Configuring and Running a Simple Example
Use ANT for compiling and running the examples, as described in
the "README" file.
Look at the different examples by first reading the information
in the Programmers Guide, then looking at the source code in
the tutorial examples, and finally running the different
examples.Make sure you look at the socket example.
Christian D. Jensen
Last updated: April 28'th 2011 by Bo Holst-Christensen