summaryrefslogtreecommitdiff
path: root/examples/README
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-09-05 08:31:01 +0000
committerMark Wielaard <mark@klomp.org>2005-09-05 08:31:01 +0000
commit67441cf3ceaa66df2642f539b10f8f63d07a425f (patch)
treefa4cb628f6028d515718d6056e53e456cfb7c84f /examples/README
parent59c6697631753b8e2e2d0401b65bf44491b2dcfc (diff)
downloadclasspath-67441cf3ceaa66df2642f539b10f8f63d07a425f.tar.gz
* configure.ac (AC_CONFIG_FILES): Add examples/Makefile.jawt.
* examples/.cvsignore: Add Makefile.jawt. * examples/Makefile.am (EXAMPLE_C_FILES): New variable. (ALL_EXAMPLE_FILES): Likewise. (install-data-local): Use ALL_EXAMPLE_FILES and add Makefile.jawt. (uninstall-local): Likewise. (EXTRA_DIST): Add Makefile.awt.in. * examples/Makefile.jawt.in: New file. * examples/README: Add jawt instructions. * examples/gnu/classpath/examples/jawt/DemoJAWT.c (Java_DemoJAWT_paint): Rename to Java_gnu_classpath_examples_jawt_DemoJAWT_paintIt. (Java_gnu_classpath_examples_jawt_DemoJAWT_paintIt): Flip foreground color based on on parameter. * examples/gnu/classpath/examples/jawt/DemoJAWT.java (paint): Renamed paintIt. (paint): Call paintIt. (on): New boolean field. (main): Add Frame name, switch on variable every 0.5 seconds and call Frame.repaint(). * examples/gnu/classpath/examples/jawt/Makefile: Removed. * include/Makefile.am (include_HEADERS): New for jni.h, jni_md.h, jawt.h and jawt_md.h.
Diffstat (limited to 'examples/README')
-rw-r--r--examples/README23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/README b/examples/README
index 3f612f3a0..727677363 100644
--- a/examples/README
+++ b/examples/README
@@ -23,6 +23,29 @@ run as follows:
kaffe -classpath examples.zip gnu.classpath.examples.awt.Demo
kaffe -classpath examples.zip gnu.classpath.examples.swing.Demo
+The jawt Demo needs some extra support library that currently needs to be
+build by hand. The following assumes GNU Classpath was installed in
+/usr/local/classpath, if you installed it somewhere else then adjust the
+-I and -L paths accordingly. The included Makefile.jawt is setup this way.
+
+You can invoke it with:
+
+ make -f Makefile.jawt
+
+Or you can compile by hand as follows:
+
+ gcj -C gnu/classpath/examples/jawt/DemoJAWT.java
+ gcjh -jni gnu.classpath.examples.jawt.DemoJAWT -o DemoJAWT.h
+ gcc -g -O0 -Wall -I. -I/usr/X11R6/include -L. -L/usr/X11R6/lib \
+ -I/usr/local/classpath/include -L/usr/local/classpath/lib/classpath \
+ -lX11 -ljawtgnu -shared -o libDemoJAWT.so \
+ gnu/classpath/examples/jawt/DemoJAWT.c
+
+You can then run the example as follows:
+
+ export LD_LIBRARY_PATH=.:/usr/local/classpath/lib/classpath
+ jamvm gnu.classpath.examples.jawt.DemoJAWT
+
All example code is distributed under the GNU General Public License (GPL).
The example icons used in some of the examples come from gnome-icon-theme