This directory contains Java sample programs for various Ice components. These examples are provided to get you started on using a particular Ice feature or coding technique.
Most of the subdirectories here correspond directly to Ice components, such as IceGrid, Glacier2, and so on. We've also included the following additional subdirectories:
-
Manual contains complete examples for some of the code snippets in the Ice manual.
-
Android contains examples of Android applications.
Refer to the C++ demos for more examples that use the Ice services (Glacier2, IceGrid, IceStorm).
If you've installed Ice in a non-standard location, you'll need to set the
ICE_HOME
environment variable with the path name of the
installation directory. For example, on Linux or OS X:
$ export ICE_HOME=~/testing/Ice
On Windows:
> set ICE_HOME=C:\Ice
The build system for the Java sample programs uses Gradle and includes a wrapper script or batch file that automatically downloads Gradle and all other required components.
To build the demos, open a command window and run:
gradlew build
Before running a demo, make sure you've configured your environment to use Ice as described in the release notes.
Refer to the README file in each demo directory for usage instructions.