Copyright 2013 The Netherlands eScience Center
To compile and run Xenon examples, a working binary distribution of Xenon is required. This binary distribution can either be download or create from the source distribution, as described in the "INSTALL.md" file.
The Xenon examples are located in the examples directory of the
binary distribution. To compile these examples, go to this directory
and run ant.
This will compile the examples and create a dist/xenon-examples.jar
file.
To run the examples, ensure that the following jar files are in the Java classpath:
-
The
xenon-examples.jarthat was just created (see above). -
The
xenon-<version>.jarand all its dependencies. These can be found in thelibdirectory of the binary distribution of Xenon. -
The directory that contains the
logback.xmlfile. In the binary distribution this can be found inetc.
For example, running the following command from the examples
directory should run the CreatingXenon example:
java -cp dist/:../lib/:../etc nl.esciencecenter.xenon.examples.CreatingXenon
Note that the classpath is specified in Linux/OSX format here. On
Windows use dist\*;..\lib\*;..\etc.