Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 33072 invoked from network); 13 Jun 2007 15:57:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 15:57:16 -0000 Received: (qmail 23512 invoked by uid 500); 13 Jun 2007 15:57:19 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 23484 invoked by uid 500); 13 Jun 2007 15:57:19 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 23474 invoked by uid 99); 13 Jun 2007 15:57:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 08:57:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [68.142.198.202] (HELO smtp103.sbc.mail.mud.yahoo.com) (68.142.198.202) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 13 Jun 2007 08:57:14 -0700 Received: (qmail 48694 invoked from network); 13 Jun 2007 15:56:52 -0000 Received: from unknown (HELO ?9.72.133.77?) (ddebrunner@sbcglobal.net@32.97.110.142 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 13 Jun 2007 15:56:52 -0000 X-YMail-OSG: sR.ztw0VM1kPFxTGFWGcLL7LkrSlU_q5ZMIC3WFqy8SrIJRusIKk73IpMa9Fz587a9NR7qZUQg-- Message-ID: <4670135F.8000600@apache.org> Date: Wed, 13 Jun 2007 08:55:11 -0700 From: Daniel John Debrunner User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: problems building j2me References: <6b4a562b0706130716i2053a21cxf80b364e6349d6bb@mail.gmail.com> In-Reply-To: <6b4a562b0706130716i2053a21cxf80b364e6349d6bb@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mike Jarmy wrote: > I'm getting a NoSuchMethodError when I try to run derby under a J9 JVM. > I built derby from source, using the jsr169compile.classpath property, > which I believe means that the resulting derby.jar should be J2ME > compliant. However, when I run my little test app, I get an exception > saying that the method DirRandomAccessFile4.getChannel() is not found. > Since this method returns a java.nio.FileChannel, which is clearly not > part of J2ME, it seems that I must have somehow included non-J2ME stuff > when I did the build (even though I carefully followed the directions in > BUILDING.txt). Can someone tell me what I'm doing wrong? > > It is my understanding that all I have to do to build J2ME is put > jsr169compile.classpath in my ant.properties file. So here is my > ant.properties file: > > j14lib=d:/niagara/r3dev/tools/jdk14/jre/lib > j13lib=d:/niagara/r3dev/tools/jdk13/jre/lib > proceed=false > sane=false > > jsr169compile.classpath=D:/niagara/r3dev/dist/x86-qnx-j9/ive/lib/jclMax/classes.zip > ;D:/apps/java/jsr169/sun/sql.jar jsr169compile.classpath is expected to be set to a classpath with the J2ME/CDC/Foundation 1.0/1.1 and the JSR libraries. jclMax is not J2ME/CDC/Foundation, I think it's JDK 1.3. Here's the value I use (for trunk, where foundation 1.1 is used): jsr169compile.classpath=C:/IBM/WEME/runtimes/61/win-x86-ppro11/weme-win-x86-ppro 11_6.1.1.20061110-161633/lib/jclFoundation11/classes.zip;C:/_work/p4n/djdcs/wctm e5.7/ive/lib/jdbc.jar jdbc.jar in mine should be the same as your sql.jar. HTH, Dan.