OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / libjava / classpath / examples / README
1 This directory contains example programs that show how the GNU Classpath
2 library can be used.
3
4 Each example has its own package under gnu.classpath.examples and has a
5 class Demo which contains a main() method to run that particular example.
6
7 The examples can be compiled and run with gcj as follows:
8
9   gcj -o swingdemo --main=gnu.classpath.examples.swing.Demo \
10       gnu/classpath/examples/swing/Demo.java
11   ./swingdemo
12
13 Or with a traditional byte code interpreter like:
14
15   gcj -C gnu/classpath/examples/awt/Demo.java
16   gij gnu.classpath.examples.awt.Demo
17
18 The installation also comes with an examples.zip archive that contains
19 all needed resources and compiled byte code class files that can be
20 run as follows:
21
22   kaffe -classpath examples.zip gnu.classpath.examples.awt.Demo
23   kaffe -classpath examples.zip gnu.classpath.examples.swing.Demo
24
25 All example code is distributed under the GNU General Public License (GPL).
26
27 The example icons used in some of the examples come from gnome-icon-theme
28 version 1.2.3 and are also distributed under the GPL.
29 All these images are stored in the directory gnu/classpath/examples/icons/.
30
31 More free icons can be found in the gnome-icon-theme package:
32 http://ftp.gnome.org/pub/GNOME/sources/gnome-icon-theme/
33
34
35 GNU Classpath examples are free software; you can redistribute it
36 and/or modify it under the terms of the GNU General Public License as
37 published by the Free Software Foundation; either version 2, or (at
38 your option) any later version.
39
40 GNU Classpath examples are distributed in the hope that they will be
41 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
42 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
43 General Public License for more details.
44
45 You should have received a copy of the GNU General Public License
46 along with GNU Classpath examples; see the file COPYING.  If not,
47 write to the Free Software Foundation, 51 Franklin Street, Fifth Floor,
48 Boston, MA 02110-1301, USA.