db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satheesh Bandaram <sathe...@Sourcery.Org>
Subject Re: derby jdbc load driver
Date Tue, 09 Aug 2005 21:32:20 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I think Derby recommends using <b>.newInstance()</b> to load JDBC
drivers... In fact, it is required if you plan to shutdown and reboot
databases on the same thread/VM for Derby. Take a look at the javadoc
for EmbeddedDriver.<br>
<br>
<a class="moz-txt-link-freetext" href="http://db.apache.org/derby/javadoc/engine/org/apache/derby/jdbc/EmbeddedDriver.html">http://db.apache.org/derby/javadoc/engine/org/apache/derby/jdbc/EmbeddedDriver.html</a><br>
<br>
Satheesh<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Oyvind.Bakksjo@Sun.COM">Oyvind.Bakksjo@Sun.COM</a>
wrote:
<blockquote cite="mid42F89854.8020408@sun.com" type="cite">Bogdan
Mihaila wrote:
  <br>
  <blockquote type="cite">Hello!
    <br>
&nbsp;
    <br>
I'm trying to load the embedded derby driver, like this:
    <br>
&nbsp;
    <br>
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
    <br>
  </blockquote>
  <br>
As Rajesh pointed out, the problem is most likely the CLASSPATH. If you
still have problems, please send the complete exception, including
stack trace, as this helps to figure out the problem.
  <br>
  <br>
By the way, you don't need the '.newInstance()' part - simply loading
the driver class will set up the Derby system.
  <br>
  <br>
</blockquote>
</body>
</html>


Mime
View raw message