Imported Classpath 0.18.
* sources.am, Makefile.in: Updated. * Makefile.am (nat_source_files): Removed natProxy.cc. * java/lang/reflect/natProxy.cc: Removed. * gnu/classpath/jdwp/VMFrame.java, gnu/classpath/jdwp/VMIdManager.java, gnu/classpath/jdwp/VMVirtualMachine.java, java/lang/reflect/VMProxy.java: New files. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * scripts/makemake.tcl (verbose): Add gnu/java/awt/peer/qt to BC list. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/net/DefaultContentHandlerFactory.java (getContent): Remove ClasspathToolkit references. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/awt/xlib/XCanvasPeer.java: Add new peer methods. * gnu/awt/xlib/XFramePeer.java: Likewise. * gnu/awt/xlib/XGraphicsConfiguration.java: Likewise. 2005-09-23 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (libgcjawt_la_SOURCES): Remove jawt.c. Add classpath/native/jawt/jawt.c. * Makefile.in: Regenerate. * jawt.c: Remove file. * include/Makefile.am (tool_include__HEADERS): Remove jawt.h and jawt_md.h. Add ../classpath/include/jawt.h and ../classpath/include/jawt_md.h. * include/Makefile.in: Regenerate. * include/jawt.h: Regenerate. * include/jawt_md.h: Regenerate. From-SVN: r104586
This commit is contained in:
@@ -7,7 +7,8 @@ class Demo which contains a main() method to run that particular example.
|
||||
The examples can be compiled and run with gcj as follows:
|
||||
|
||||
gcj -o swingdemo --main=gnu.classpath.examples.swing.Demo \
|
||||
gnu/classpath/examples/swing/Demo.java
|
||||
gnu/classpath/examples/swing/Demo.java \
|
||||
gnu/classpath/examples/swing/GNULookAndFeel.java
|
||||
./swingdemo
|
||||
|
||||
Or with a traditional byte code interpreter like:
|
||||
@@ -22,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
|
||||
|
||||
Reference in New Issue
Block a user