Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4999C82EF for ; Mon, 8 Aug 2011 14:08:40 +0000 (UTC) Received: (qmail 58754 invoked by uid 500); 8 Aug 2011 14:08:39 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 58694 invoked by uid 500); 8 Aug 2011 14:08:39 -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 58682 invoked by uid 99); 8 Aug 2011 14:08:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 14:08:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raykroeker@gmail.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yw0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 14:08:32 +0000 Received: by ywm21 with SMTP id 21so3083898ywm.31 for ; Mon, 08 Aug 2011 07:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=3r42CWBvRnGvQLtn5fPAoLhgF87gMPlVmL9COTsR774=; b=wzusb8pnTvfz1n6m3wb9nxrdVGez2rsc224p6SUn54OeJt3Xvc+bnw62TR6iCGg31C 4h6qG48qtVBEiCQBkSMa5Cpo8EF1pcRaDePMykMgkwCJdGNDPmhfdmR1ExTvci6lQ+hs l9HFamTiVTglZMga7Z90dbMzxnuFB0fC1c6oE= MIME-Version: 1.0 Received: by 10.142.43.13 with SMTP id q13mr66897wfq.448.1312812491534; Mon, 08 Aug 2011 07:08:11 -0700 (PDT) Received: by 10.68.58.138 with HTTP; Mon, 8 Aug 2011 07:08:11 -0700 (PDT) Received: by 10.68.58.138 with HTTP; Mon, 8 Aug 2011 07:08:11 -0700 (PDT) Reply-To: raykroeker@gmail.com In-Reply-To: <1775907561.365026.1312811727817.JavaMail.root@sz0138a.westchester.pa.mail.comcast.net> References: <4E3FDE0A.3040405@oracle.com> <1775907561.365026.1312811727817.JavaMail.root@sz0138a.westchester.pa.mail.comcast.net> Date: Mon, 8 Aug 2011 07:08:11 -0700 Message-ID: Subject: Re: Can't Load Embedded Driver From: Raymond Kroeker To: Derby Discussion Content-Type: multipart/alternative; boundary=000e0cd1a2c636f2f904a9fefacc X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1a2c636f2f904a9fefacc Content-Type: text/plain; charset=ISO-8859-1 Can you try specifying the driver as a fqcn? If that doesn't solve the issue please paste relevant code around how you load the driver and obtain a connection. Raymond On Aug 8, 2011 6:55 AM, wrote: > > > Rick, > > > > Thank you very much for offering your help. Apparently my CLASSPATH is good. I typed in "java org.apache.derby.jdbc.EmbeddedDriver" and did indeed get exactly the expected "Exception in thread "main" java.lang.NoSuchMethodError: main" error message. What else could be causing my problem? > > > > Roy > > > > > > ----- Original Message ----- > > > From: "Rick Hillegas" > To: "Derby Discussion" > Sent: Monday, August 8, 2011 9:00:58 AM > Subject: Re: Can't Load Embedded Driver > > On 8/7/11 9:54 AM, Roy.Minet@comcast.net wrote: >> >> I have been happily using Derby for two years within IntelliJ Idea, >> but have now hit a wall trying to deploy the application I developed. >> I have tried setting the path to derby.jar on the command line and/or >> in the CLASSPATH environment variable to no avail. The embedded >> driver doesn't load; the error message is, "No suitable driver found >> for jdbc:derby:EMDatabase;create=true". I'm under Windows XP Pro. >> Any help would be appreciated. >> >> Roy Minet >> >> > Hi Roy, > > This is almost always a CLASSPATH problem. With the same CLASSPATH, try > the following experiment: > > java org.apache.derby.jdbc.EmbeddedDriver > > If the CLASSPATH is good, you should see this error: > > Exception in thread "main" java.lang.NoSuchMethodError: main > > Hope this helps, > -Rick --000e0cd1a2c636f2f904a9fefacc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Can you try specifying the driver as a fqcn? If that doesn't solve t= he issue please paste relevant code around how you load the driver and obta= in a connection.

Raymond

On Aug 8, 2011 6:55 AM, <Roy.Minet@comcast.net> wrote:
>
>
> Rick,
>
>
>
> Th= ank you very much for offering your help.=A0 Apparently my CLASSPATH is goo= d.=A0 I=A0typed in=A0"java org.apache.derby.jdbc.EmbeddedDriver" = and did indeed get exactly the expected "Exception in thread "mai= n" java.lang.NoSuchMethodError: main" error message.=A0 What else= =A0could be causing =A0my problem?
>
>
>
> Roy
>
>
>
> >
> ----- Original Message -----
>
>
> From:= "Rick Hillegas" <= rick.hillegas@oracle.com>
> To: "Derby Discussion" <derby-user@db.apache.org>
> Sent: Monday, August 8= , 2011 9:00:58 AM
> Subject: Re: Can't Load Embedded Driver
>
> On 8/7/11 9:54 AM, R= oy.Minet@comcast.net wrote:
>>
>> I have been happi= ly using Derby for two years within IntelliJ Idea,
>> but have no= w hit a wall trying to deploy the application I developed. =A0
>> I have tried setting the path to derby.jar on the command line and= /or
>> in the CLASSPATH environment variable to no avail. =A0The = embedded
>> driver doesn't load; the error message is, "= No suitable driver found
>> for jdbc:derby:EMDatabase;create=3Dtrue". =A0I'm under Wi= ndows XP Pro. =A0
>> Any help would be appreciated.
>> =
>> Roy Minet
>>
>>
> Hi Roy,
> =
> This is almost always a CLASSPATH problem. With the same CLASSPATH, tr= y
> the following experiment:
>
> java org.apache.derb= y.jdbc.EmbeddedDriver
>
> If the CLASSPATH is good, you shoul= d see this error:
>
> Exception in thread "main" java.lang.NoSuchMethodEr= ror: main
>
> Hope this helps,
> -Rick
--000e0cd1a2c636f2f904a9fefacc--