2006-07-31 Roman Kennke <[EMAIL PROTECTED]> * NEWS: Added note about the X peers. * INSTALL: Added install notes about the X peers.
/Roman
Index: INSTALL =================================================================== RCS file: /cvsroot/classpath/classpath/INSTALL,v retrieving revision 1.37 diff -u -1 -2 -r1.37 INSTALL --- INSTALL 25 May 2006 15:29:35 -0000 1.37 +++ INSTALL 31 Jul 2006 18:56:14 -0000 @@ -50,24 +50,29 @@ - gdk-pixbuf - XTest Extension (libXtst) for GdkRobot support in java.awt. For building gcjwebplugin you'll need the Mozilla plugin support headers and libraries. For building the Qt AWT peer JNI native libraries you have to specify --enable-qt-peer and need the following library: - Qt 4.0.1 + For building the X AWT peers see information below + (Building and running with the X AWT peers). You will need + the Escher 0.2.3 library: + http://escher.sourceforge.net + Please note that at the moment most operating systems do not ship Qt4 by default. We recommend using GNU Classpath' Qt4 support only for its developers and bug reporters. See http://developer.classpath.org/mediation/ClasspathShowcase for details on how to get it to work. For building the xmlj JAXP implementation (disabled by default, use configure --enable-xmlj) you need the following installed: - The XML C library for Gnome (libxml2) http://www.xmlsoft.org/ Minimum version of libxml2 required: 2.6.8 @@ -110,28 +115,34 @@ package is built. Consider the following options, "configure --help" gives a complete list. --enable-java compile Java source default=yes --enable-jni compile JNI source default=yes --enable-gtk-peer compile GTK native peers default=yes --enable-qt-peer compile Qt4 native peers default=no --enable-default-toolkit fully qualified class name of default AWT toolkit default=no --enable-xmlj compile native libxml/xslt library default=no --enable-load-library enable to use JNI native methods default=yes + --enable-local-sockets enable build of local Unix sockets --with-jikes to compile the class library using jikes the default is to use gcj --with-glibj define what to install (zip|flat|both|none) default=zip + --with-escher=/path/to/escher + enable build of the X/Escher peers, with + the escher library at /path/to/escher, either + in the form of a JAR file, or a directory + containing the .class files of Escher. --enable-Werror whether to compile C code with -Werror which turns any compiler warning into a compilation failure default=no --with-gjdoc generate documentation using gjdoc default=no --with-jay Regenerate the parsers with jay must be given the path to the jay executable --with-glibj-zip=ABS.PATH use prebuilt glibj.zip class library For more flags run configure --help. 2). Type "gmake" to build the package. There is no longer a @@ -155,24 +166,43 @@ *NOTE* All example paths assume the default prefix is used with configure. If you don't know what this means then the examples are correct. LD_LIBRARY_PATH=/usr/local/classpath/lib/classpath CLASSPATH=/usr/local/classpath/share/classpath/glibj.zip:. export LD_LIBRARY_PATH CLASSPATH More information about the VMs that use GNU Classpath can be found in the README file. ------------------------------------------------------------------ +Building and running with the X AWT peers +------------------------------------------------------------------ + +In order build the X peers you need the Escher library version 0.2.3 +from http://escher.sourceforge.net . Unpack (and optionally build) the +Escher library following the instructions in the downloaded +package. Enable the build of the X peers by passing +--with-escher=/path/to/escher to ./configure where /path/to/escher +either points to a directory structure or JAR file containing the +Escher classes. For Unix systems it is preferable to also build local +socket support by passing --enable-local-sockets, which accelerates +the network communication to the X server significantly. + +In this release you have to enable the X peers at runtime by +setting the system property awt.toolkit=gnu.java.awt.peer.x.XToolkit +by passing -Dawt.toolkit=gnu.java.awt.peer.x.XToolkit to the java +command when running an application. + +------------------------------------------------------------------ Misc. Notes ------------------------------------------------------------------ Compilation is accomplished using a compiler's @file syntax. For our part, we avoid placing make style dependencies as rules upon the compilation of a particular class file and leave this up to the Java compiler instead. The --enable-maintainer-mode option to configure currently does very little and shouldn't be used by ordinary developers or users anyway. On Windows machines, the native libraries do not currently build, but the Java bytecode library will. Gcj trunk is beginning to work under Index: NEWS =================================================================== RCS file: /cvsroot/classpath/classpath/NEWS,v retrieving revision 1.160 diff -u -1 -2 -r1.160 NEWS --- NEWS 28 Jul 2006 15:22:29 -0000 1.160 +++ NEWS 31 Jul 2006 18:56:15 -0000 @@ -28,24 +28,30 @@ * Several new tools are now included: * appletviewer * jar * native2ascii * serialver * keytool * jarsigner A new configure option --enable-tool-wrappers causes wrapper binaries to be built for VMs that support the JNI Invocation API. * javax.sound.midi providers have been added to read and write standard MIDI files. * New Java Virtual Machine Tool Interface header, jvmti.h. +* AWT peers for X Windows based on Escher (a pure Java X protocol + implementation) have been added. So far it supports AWT 1.1 style + Graphics, image loading via ImageIO (PNG, GIF and BMP images in this + release), top level components as well as mouse and keyboard input. + It is capable of running many Swing applications. Graphics2D and + AWT widgets are not yet supported. Runtime interface changes: * A new class, VMURLConnection, is used to implement URLConnection.guessContentTypeFromStream. The reference implementation uses libmagic (and falls back to doing nothing if libmagic is not available). * The method gnu.java.io.PlatformHelper.toCanonicalForm() has been replaced with a JNI implementation of VMFile.toCanonicalForm() for GNU/Posix systems. * A new class, VMRuntimeMXBeanImpl, is used to implement the low-level support of the runtime management bean.