From derby-user-return-6655-apmail-db-derby-user-archive=db.apache.org@db.apache.org Mon Apr 23 11:26:08 2007 Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 82535 invoked from network); 23 Apr 2007 11:26:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2007 11:26:04 -0000 Received: (qmail 5305 invoked by uid 500); 23 Apr 2007 11:26:05 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 5260 invoked by uid 500); 23 Apr 2007 11:26:05 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 5174 invoked by uid 99); 23 Apr 2007 11:26:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 04:26:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 04:25:56 -0700 Received: from d1-emea-09.sun.com ([192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l3NBPSFX021583 for ; Mon, 23 Apr 2007 11:25:34 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JGY008017LG8900@d1-emea-09.sun.com> (original mail from John.Embretsen@Sun.COM) for derby-user@db.apache.org; Mon, 23 Apr 2007 12:25:28 +0100 (BST) Received: from [129.159.112.236] by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JGY00A4Y7QF9S60@d1-emea-09.sun.com> for derby-user@db.apache.org; Mon, 23 Apr 2007 12:25:27 +0100 (BST) Date: Mon, 23 Apr 2007 13:24:31 +0200 From: John Embretsen Subject: Re: question on Working with JavaDB Activities In-reply-to: <20070423071802.78007.qmail@web50605.mail.re2.yahoo.com> Sender: John.Embretsen@Sun.COM To: Derby Discussion Reply-to: derby-user@db.apache.org Message-id: <462C976F.2040009@Sun.COM> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <20070423071802.78007.qmail@web50605.mail.re2.yahoo.com> User-Agent: Thunderbird 2.0.0.0 (X11/20070419) X-Virus-Checked: Checked by ClamAV on apache.org Joe Annoni wrote: > Couple of novice questions here (your help is much > appreciated!): > > 1) While going through the "Working with JavaDB" pdf > in Step 2 of Activity 3 (ie, page 14), I'm getting a > command line error of "'javac' is not recognized as an > internal or external command...". I presume there is > a problem with my JAVA_HOME path, but I've changed it > from the "java/j2re1.4.2_03" directory (which has > worked for everything else) to "java/jdk1.6.0" (where > the 'javac.exe' file exists) and still nothing. Is > there somewhere else where the 'javac' command should > be picked up? Try running "${JAVA_HOME}/bin/javac" ("%JAVA_HOME%\bin\javac" on Windows) instead of just "javac". Alternatively, if you add the path to the bin/ directory of your java installation to your PATH environment variable, for example: Bash shell: export PATH=${JAVA_HOME}/bin:${PATH} Windows cmd.exe: set PATH=%JAVA_HOME%\bin;%PATH% then "javac" should work. The "Working with..." guide does not show this as far as I can see, but I don't know if that was a conscious decision or not. > 2) Separately, I compiled the WwdEmbedded.java file in > an IDE (JCreator) and when I trying executing it I get > "ClassNotFoundException: > org.apache.derby.jdbc.EmbeddedDriver". I understand > this may be a CLASSPATH problem, however when I check > %classpath% it shows it pointing to the 'derby.jar' > and 'derbytools.jar' files. Any other common problems > or suggestions? Your analysis is correct, this happens when the driver class (which is in derby.jar) is not in the classpath. Did you (try to) execute the application in a command window or via the IDE? I don't have any other suggestions than double checking that the application is using the classpath you think it is using... Does running sysinfo ("java org.apache.derby.tools.sysinfo") work? -- John