Skip to content

Latest commit

 

History

History
 
 

java-compat

Java Demos

Overview

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.

  • Chat contains a GUI client for the ZeroC Chat Demo.

  • Android contains examples of Android applications.

Refer to the C++ demos for more examples that use the Ice services (Glacier2, IceGrid, IceStorm).

Build Instructions

Prerequisites

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

Building the Demos

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

Running the Demos

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.