You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Jeremy Foot <je...@thefeet.net> on 2006/08/14 03:20:02 UTC
No suitable driver for ij
I have derby working fine and can access it through various tools using
the JDBC driver. I am trying to use the bundled ij tool to import some
data from a csv file.
ij runs fine and has the appropriate classpath, as far as I can tell.
Certainly it has a path to the JDBC jar library, including file name.
When I try to connect to derby, it fails with "No suitable driver
found".
If the CLASSPATH was wrong, I would expect a "ClassNotFound" exception
and a stack trace or is ij catching this?
I am running Derby is 10.1.1 on Windose XP
Gratefull for pointers and stuff I've already picked up from the list.
Jeremy
___________________________________________________________
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
Re: No suitable driver for ij
Posted by Stanley Bradbury <St...@gmail.com>.
Zithulele Basil Shange wrote:
> Hi Jeremy,
>
> The "NoClassDefFoundError" usually occurs when you have two or more of the
> same classes from different jars or zip files. Can you submit the
> stacktrace?
>
> Zithulele
>
> -----Original Message-----
> From: Jeremy Foot [mailto:jeremy@thefeet.net]
> Sent: 14 August 2006 11:57 PM
> To: Derby Discussion
> Subject: Re: No suitable driver for ij
>
> Darn. Got completely explicit with all parts of the url (
> jdbc:derby://127.0.0.1:1527/SystemDatabase ).
>
> Got a class loader error (NoClassDefFoundError) now, so it is class path
>
> Jeremy
>
> On 14 Aug 2006, at 2:52 am, Craig L Russell wrote:
>
>
>> Hi Jeremy,
>>
>> Often the "no suitable driver found" message is an incorrect url,
>> assuming that your classpath is set up ok (which is usually the case
>> if you can get to the ij program itself).
>>
>> So what's your url?
>>
>> Craig
>>
>> On Aug 13, 2006, at 6:20 PM, Jeremy Foot wrote:
>>
>>
>>> I have derby working fine and can access it through various tools
>>> using the JDBC driver. I am trying to use the bundled ij tool to
>>> import some data from a csv file.
>>>
>>> ij runs fine and has the appropriate classpath, as far as I can tell.
>>> Certainly it has a path to the JDBC jar library, including file name.
>>>
>>> When I try to connect to derby, it fails with "No suitable driver
>>> found".
>>> ==== SNIP ==
>>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp!
>>
>>
>
>
>
> ____________________________________________________
>
> Yahoo! Photos is now offering a quality print service from just 7p a photo.
> http://uk.photos.yahoo.com
>
>
>
Is this from IJ? If the derbyclient.jar is not found then I would
expect the error you got first (no suitable driver) - IJ catches the
exception and presents a more 'friendly' message. I get the expected
JAVA exception when I specify an invalid driver name. What is the class
listed in the exception?
Here's my test :
java -Dij.driver=mybogusDriver org.apache.derby.tools.ij
java.lang.ClassNotFoundException: mybogusDriver
The driver you need to specify is: /org.apache.derby.jdbc.ClientDriver/
HTH
RE: No suitable driver for ij
Posted by Zithulele Basil Shange <zi...@cibecs.com>.
Hi Jeremy,
The "NoClassDefFoundError" usually occurs when you have two or more of the
same classes from different jars or zip files. Can you submit the
stacktrace?
Zithulele
-----Original Message-----
From: Jeremy Foot [mailto:jeremy@thefeet.net]
Sent: 14 August 2006 11:57 PM
To: Derby Discussion
Subject: Re: No suitable driver for ij
Darn. Got completely explicit with all parts of the url (
jdbc:derby://127.0.0.1:1527/SystemDatabase ).
Got a class loader error (NoClassDefFoundError) now, so it is class path
Jeremy
On 14 Aug 2006, at 2:52 am, Craig L Russell wrote:
> Hi Jeremy,
>
> Often the "no suitable driver found" message is an incorrect url,
> assuming that your classpath is set up ok (which is usually the case
> if you can get to the ij program itself).
>
> So what's your url?
>
> Craig
>
> On Aug 13, 2006, at 6:20 PM, Jeremy Foot wrote:
>
>> I have derby working fine and can access it through various tools
>> using the JDBC driver. I am trying to use the bundled ij tool to
>> import some data from a csv file.
>>
>> ij runs fine and has the appropriate classpath, as far as I can tell.
>> Certainly it has a path to the JDBC jar library, including file name.
>>
>> When I try to connect to derby, it fails with "No suitable driver
>> found".
>>
>> If the CLASSPATH was wrong, I would expect a "ClassNotFound"
>> exception and a stack trace or is ij catching this?
>>
>> I am running Derby is 10.1.1 on Windose XP
>>
>> Gratefull for pointers and stuff I've already picked up from the list.
>>
>> Jeremy
>>
>>
>>
>>
>> ___________________________________________________________ Now you
>> can scan emails quickly with a reading pane. Get the new Yahoo! Mail.
>> http://uk.docs.yahoo.com/nowyoucan.html
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp!
>
____________________________________________________
Yahoo! Photos is now offering a quality print service from just 7p a photo.
http://uk.photos.yahoo.com
Re: No suitable driver for ij
Posted by Jeremy Foot <je...@thefeet.net>.
Darn. Got completely explicit with all parts of the url (
jdbc:derby://127.0.0.1:1527/SystemDatabase ).
Got a class loader error (NoClassDefFoundError) now, so it is class path
Jeremy
On 14 Aug 2006, at 2:52 am, Craig L Russell wrote:
> Hi Jeremy,
>
> Often the "no suitable driver found" message is an incorrect url,
> assuming that your classpath is set up ok (which is usually the case
> if you can get to the ij program itself).
>
> So what's your url?
>
> Craig
>
> On Aug 13, 2006, at 6:20 PM, Jeremy Foot wrote:
>
>> I have derby working fine and can access it through various tools
>> using the JDBC driver. I am trying to use the bundled ij tool to
>> import some data from a csv file.
>>
>> ij runs fine and has the appropriate classpath, as far as I can tell.
>> Certainly it has a path to the JDBC jar library, including file name.
>>
>> When I try to connect to derby, it fails with "No suitable driver
>> found".
>>
>> If the CLASSPATH was wrong, I would expect a "ClassNotFound"
>> exception and a stack trace or is ij catching this?
>>
>> I am running Derby is 10.1.1 on Windose XP
>>
>> Gratefull for pointers and stuff I've already picked up from the list.
>>
>> Jeremy
>>
>>
>>
>>
>> ___________________________________________________________ Now you
>> can scan emails quickly with a reading pane. Get the new Yahoo! Mail.
>> http://uk.docs.yahoo.com/nowyoucan.html
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
____________________________________________________
Yahoo! Photos is now offering a quality print service from just 7p a photo. http://uk.photos.yahoo.com
Re: No suitable driver for ij
Posted by Craig L Russell <Cr...@Sun.COM>.
Hi Jeremy,
Often the "no suitable driver found" message is an incorrect url,
assuming that your classpath is set up ok (which is usually the case
if you can get to the ij program itself).
So what's your url?
Craig
On Aug 13, 2006, at 6:20 PM, Jeremy Foot wrote:
> I have derby working fine and can access it through various tools
> using the JDBC driver. I am trying to use the bundled ij tool to
> import some data from a csv file.
>
> ij runs fine and has the appropriate classpath, as far as I can
> tell. Certainly it has a path to the JDBC jar library, including
> file name.
>
> When I try to connect to derby, it fails with "No suitable driver
> found".
>
> If the CLASSPATH was wrong, I would expect a "ClassNotFound"
> exception and a stack trace or is ij catching this?
>
> I am running Derby is 10.1.1 on Windose XP
>
> Gratefull for pointers and stuff I've already picked up from the list.
>
> Jeremy
>
>
>
>
> ___________________________________________________________ Now you
> can scan emails quickly with a reading pane. Get the new Yahoo!
> Mail. http://uk.docs.yahoo.com/nowyoucan.html
Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!