From jdo-commits-return-106-apmail-db-jdo-commits-archive=www.apache.org@db.apache.org Thu Feb 10 15:41:12 2005 Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 94179 invoked from network); 10 Feb 2005 15:41:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Feb 2005 15:41:12 -0000 Received: (qmail 83963 invoked by uid 500); 10 Feb 2005 15:41:12 -0000 Mailing-List: contact jdo-commits-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-commits@db.apache.org Received: (qmail 83949 invoked by uid 99); 10 Feb 2005 15:41:12 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 10 Feb 2005 07:41:11 -0800 Received: (qmail 94164 invoked from network); 10 Feb 2005 15:41:09 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 10 Feb 2005 15:41:09 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: jdo-commits@db.apache.org To: jdo-commits@db.apache.org Subject: =?iso-8859-1?q?=5BApache_JDO_Wiki=5D_New=3A__J2SESupport?= Date: Thu, 10 Feb 2005 15:41:09 -0000 Message-ID: <20050210154109.94110.64955@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2005-02-10T07:41:09 Editor: MichaelBouschen Wiki: Apache JDO Wiki Page: J2SESupport URL: http://wiki.apache.org/jdo/J2SESupport Description of J2SE 1.3 support New Page: '''J2SE 1.3 support''' The objective of JDO is to support J2SE 1.3 (and higher) for runtime. You need J2SE 1.4 to compile the sub-projects ri11 and tck11: *Both ri11 and tck11 provide a helper class to configure standard J2SE 1.4= logging. This class does not compile with J2SE 1.3. *The JDO specification calls for use of javax.transaction.Transaction. Bot= h ri11 and tck11 need the JTA interfaces for compilation. In order to use t= he automatic dependency management as provided by maven we use the JTA inte= rfaces as provided by geronimo (geronimo-spec:geronimo-spec-jta). The class= files in this jar are compiled -target 1.4, so they cannot be used with a = J2SE 1.3 compiler. However, you can run the jars as created by the sub-projects api11, btree, = ri11 and tck11 with a J2SE 1.3 runtime. For the btree sub-project we cannot= use the latest version of the netbeans btree sources, because they make us= e of assert statements. This means you need to compile them with option -so= urce 1.4 which implies -target 1.4 such that the generated code does not ru= n with J2SE 1.3. We switched to btree sources from mid of September 2004 th= at do not use assert statements. The resulting btree jar runs with J2SE 1.3. In order to run ri11 and tck11 with J2SE 1.3 you need to switch the JTA dis= tribution and add a XML parser implementation: *You can download the JTA distribution version 1.0.1B from http://java.sun= .com/products/jta. Then change the value of property jta.jarfile in project= .properties of ri11 and tck11 to refer to the downloaded jar: jta.jarfile =3D ${basedir}/../lib/jta-1_0_1B-classes.zip *The JDO model needs an XML parser to read the JDO metadata files. J2SE 1.= 4 includes an XML parser implementation, but J2SE 1.3 does not. You can dow= nload the Xerces-J release 1.4.4 from http://xml.apache.org/xerces-j. Then = change the value of property xmlparser in project.properties of ri11 and tc= k11 to refer to the jar xerces.jar included the downloaded distribution: xmlparser =3D ${basedir}/../lib/xerces.jar The above property setting assume you placed the downloaded jars into a new= directory called lib located parallel to ri11 and tck11.