<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: JDBC ClassNotFoundException (NetBeans, Classpath, Java)</title>
	<atom:link href="/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html/feed" rel="self" type="application/rss+xml" />
	<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html</link>
	<description>Search Engines &#124; Blogs &#124; Marketting &#124; PHP/MYSQL &#124; CSS</description>
	<pubDate>Fri, 18 Apr 2008 21:15:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Marc</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-22903</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Fri, 18 Apr 2008 05:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-22903</guid>
		<description>maaan maaan u're the one amigo u're the one
i was getting sooooo frustrated with it
thx a lot bro............EUUUUURRREKAAAAAA!!!!!!!</description>
		<content:encoded><![CDATA[<p>maaan maaan u&#8217;re the one amigo u&#8217;re the one<br />
i was getting sooooo frustrated with it<br />
thx a lot bro&#8230;&#8230;&#8230;&#8230;EUUUUURRREKAAAAAA!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-22900</link>
		<dc:creator>D</dc:creator>
		<pubDate>Tue, 15 Apr 2008 02:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-22900</guid>
		<description>Thanks a lot!  I was searching for a way to add jar files to netbeans for more than two hours :-)


Regards,
D</description>
		<content:encoded><![CDATA[<p>Thanks a lot!  I was searching for a way to add jar files to netbeans for more than two hours :-)</p>
<p>Regards,<br />
D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Bond</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-21613</link>
		<dc:creator>James Bond</dc:creator>
		<pubDate>Thu, 06 Mar 2008 22:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-21613</guid>
		<description>THANK YOU SO MUCH. I too spent 2-3 hours on Google trying various options including:
- adding the JAR to Environment Variables
- adding it to the classpath in Netbeans under Options
- adding it to the jdk/lib/ext folder

Then I tried your suggestion by adding it to my project's library too and it worked.</description>
		<content:encoded><![CDATA[<p>THANK YOU SO MUCH. I too spent 2-3 hours on Google trying various options including:<br />
- adding the JAR to Environment Variables<br />
- adding it to the classpath in Netbeans under Options<br />
- adding it to the jdk/lib/ext folder</p>
<p>Then I tried your suggestion by adding it to my project&#8217;s library too and it worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Babar Raheem</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-21584</link>
		<dc:creator>Babar Raheem</dc:creator>
		<pubDate>Thu, 28 Feb 2008 20:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-21584</guid>
		<description>lol, Thank you Very much. just what i was looking for! 

perfect!</description>
		<content:encoded><![CDATA[<p>lol, Thank you Very much. just what i was looking for! </p>
<p>perfect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shweta</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-21344</link>
		<dc:creator>Shweta</dc:creator>
		<pubDate>Mon, 11 Feb 2008 15:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-21344</guid>
		<description>I wish to include the package org.apache.http.* in my project but finding it difficult..

Even after finding the classpath and copying the HHTPclient in it I get a error that the package does not exist..

Can you please help me??</description>
		<content:encoded><![CDATA[<p>I wish to include the package org.apache.http.* in my project but finding it difficult..</p>
<p>Even after finding the classpath and copying the HHTPclient in it I get a error that the package does not exist..</p>
<p>Can you please help me??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-19882</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 30 Jan 2008 23:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-19882</guid>
		<description>Thank you so much. I was pulling my hair out trying to figure out this error message. I'm using NetBeans6 and and JDK 6. For me I had a little different squence of events to do, but the basic theme was the same.

1. Right-click on your project.
2. Select “Properties.”
3. Click “Add Library...”
4. Choose "Java DB Driver”
5. Click "OK".

Here's a sample of the code I use to create the database from the Java book I'm reading.

public void createDatabase() {       
        // create the database
        String data = "jdbc:derby:presidents;create=true";
        try {
            // load the driver
            Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
            // create the connection
            Connection conn = DriverManager.getConnection(data);</description>
		<content:encoded><![CDATA[<p>Thank you so much. I was pulling my hair out trying to figure out this error message. I&#8217;m using NetBeans6 and and JDK 6. For me I had a little different squence of events to do, but the basic theme was the same.</p>
<p>1. Right-click on your project.<br />
2. Select “Properties.”<br />
3. Click “Add Library&#8230;”<br />
4. Choose &#8220;Java DB Driver”<br />
5. Click &#8220;OK&#8221;.</p>
<p>Here&#8217;s a sample of the code I use to create the database from the Java book I&#8217;m reading.</p>
<p>public void createDatabase() {<br />
        // create the database<br />
        String data = &#8220;jdbc:derby:presidents;create=true&#8221;;<br />
        try {<br />
            // load the driver<br />
            Class.forName(&#8221;org.apache.derby.jdbc.EmbeddedDriver&#8221;);<br />
            // create the connection<br />
            Connection conn = DriverManager.getConnection(data);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-18575</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Thu, 27 Dec 2007 18:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-18575</guid>
		<description>K I much appreciate this post, it helped but not immediatly. I have 6.0 and 5.5.1 Netbeans installed. The derby seems to have been installed with 5.5.1 and I expected 6.0 to install a new Jar. However I could only find the old one under a slightly unexpected path of: C:\Documents and Settings\jkl\.netbeans\5.5.1\db-derby-10.1.3.1-bin\lib\derbyclient.jar . I expected to find it in the Netbeans fold. Anyways once adding this jar to my libraries the exception was no longer thrown and the driver loaded successfully. Awesome stuff.

Thanks</description>
		<content:encoded><![CDATA[<p>K I much appreciate this post, it helped but not immediatly. I have 6.0 and 5.5.1 Netbeans installed. The derby seems to have been installed with 5.5.1 and I expected 6.0 to install a new Jar. However I could only find the old one under a slightly unexpected path of: C:\Documents and Settings\jkl\.netbeans\5.5.1\db-derby-10.1.3.1-bin\lib\derbyclient.jar . I expected to find it in the Netbeans fold. Anyways once adding this jar to my libraries the exception was no longer thrown and the driver loaded successfully. Awesome stuff.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16098</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Thu, 18 Oct 2007 08:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16098</guid>
		<description>Hey this (adding derby.jar etc) worked but when I tried it on command prompt it still gave me errors. I've been through all the tutorials they got me even more confused. 

My homework involves using Java DB &#38; RMI
To run I typed this:

C:\Documents and Settings\andy\Desktop\uni stuff\cmp416\A3\sqlsample\build\classes&#62; rmic ServiceProvider

(works without errors)

C:\Documents and Settings\andy\Desktop\uni stuff\cmp416\A3\sqlsample\build\classes&#62; start rmiregistry

(works without errors)

C:\Documents and Settings\andy\Desktop\uni stuff\cmp416\A3\sqlsample\build\classes&#62; start java StudServer

(starts server without errors but then gives this  database error :

cannot connect to database 

java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver  )</description>
		<content:encoded><![CDATA[<p>Hey this (adding derby.jar etc) worked but when I tried it on command prompt it still gave me errors. I&#8217;ve been through all the tutorials they got me even more confused. </p>
<p>My homework involves using Java DB &amp; RMI<br />
To run I typed this:</p>
<p>C:\Documents and Settings\andy\Desktop\uni stuff\cmp416\A3\sqlsample\build\classes&gt; rmic ServiceProvider</p>
<p>(works without errors)</p>
<p>C:\Documents and Settings\andy\Desktop\uni stuff\cmp416\A3\sqlsample\build\classes&gt; start rmiregistry</p>
<p>(works without errors)</p>
<p>C:\Documents and Settings\andy\Desktop\uni stuff\cmp416\A3\sqlsample\build\classes&gt; start java StudServer</p>
<p>(starts server without errors but then gives this  database error :</p>
<p>cannot connect to database </p>
<p>java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver  )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bertport</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16084</link>
		<dc:creator>bertport</dc:creator>
		<pubDate>Sat, 13 Oct 2007 23:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16084</guid>
		<description>This helped me, but I also had to try out adding a few different derby jar files to my project library, and I had to try out a couple variations of jdbc url.

I created a database (COFFEEBREAK in Sun's JDBC Tutorial) using Tools -&#62; java DB database -&#62; create Java DB database in the Netbeans menu, and then I wanted to reach that database from a java class, running from the IDE as usual.  I wound up adding three jar files to my project libraries - ~\.netbeans\5.5.1\jdbc-drivers\derbyclient.jar, C:\Sun\SDK\javadb\lib\derby.jar, and C:\Sun\SDK\javadb\lib\derbytools.jar.  (I'm not sure I needed all of these, but definitely the first of the three did not do it for me).  

I experimented with jdbc.derby://localhost:1527/COFFEEBREAK vs. jdbc:derby:COFFEEBREAK (I needed the localhost:1527), and I experimented with org.apache.derby.jdbc.EmbeddedDriver vs. org.apache.derby.jdbc.ClientDriver.  (I needed the ClientDriver, not the EmbeddedDriver.)</description>
		<content:encoded><![CDATA[<p>This helped me, but I also had to try out adding a few different derby jar files to my project library, and I had to try out a couple variations of jdbc url.</p>
<p>I created a database (COFFEEBREAK in Sun&#8217;s JDBC Tutorial) using Tools -&gt; java DB database -&gt; create Java DB database in the Netbeans menu, and then I wanted to reach that database from a java class, running from the IDE as usual.  I wound up adding three jar files to my project libraries - ~\.netbeans\5.5.1\jdbc-drivers\derbyclient.jar, C:\Sun\SDK\javadb\lib\derby.jar, and C:\Sun\SDK\javadb\lib\derbytools.jar.  (I&#8217;m not sure I needed all of these, but definitely the first of the three did not do it for me).  </p>
<p>I experimented with jdbc.derby://localhost:1527/COFFEEBREAK vs. jdbc:derby:COFFEEBREAK (I needed the localhost:1527), and I experimented with org.apache.derby.jdbc.EmbeddedDriver vs. org.apache.derby.jdbc.ClientDriver.  (I needed the ClientDriver, not the EmbeddedDriver.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Etienne</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16053</link>
		<dc:creator>Etienne</dc:creator>
		<pubDate>Fri, 28 Sep 2007 16:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16053</guid>
		<description>Thank you, you solved my problem. I came upon your page through a Google hit. I had tried looking through the project's properties but as luck would have it, the dialog has no maximise button and the button to add jar/folder was not visible without increasing the dialog's size.

Cheers</description>
		<content:encoded><![CDATA[<p>Thank you, you solved my problem. I came upon your page through a Google hit. I had tried looking through the project&#8217;s properties but as luck would have it, the dialog has no maximise button and the button to add jar/folder was not visible without increasing the dialog&#8217;s size.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16026</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Fri, 14 Sep 2007 15:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-16026</guid>
		<description>I've just spent 2 and a half days trying to figure this one out.  A lifesaver !! I was so close to trashing my computer!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just spent 2 and a half days trying to figure this one out.  A lifesaver !! I was so close to trashing my computer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Therese albert</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-15981</link>
		<dc:creator>Therese albert</dc:creator>
		<pubDate>Wed, 05 Sep 2007 00:52:34 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-15981</guid>
		<description>‘’java.lang.ClassNotFoundException’ error
thanks a lot man..i was breaking my head for so long...thanks a lot again..it helped me a lot...</description>
		<content:encoded><![CDATA[<p>‘’java.lang.ClassNotFoundException’ error<br />
thanks a lot man..i was breaking my head for so long&#8230;thanks a lot again..it helped me a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Halfdeck</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-15826</link>
		<dc:creator>Halfdeck</dc:creator>
		<pubDate>Wed, 01 Aug 2007 01:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-15826</guid>
		<description>Hey Rajeev,

I'm glad you found the info useful.</description>
		<content:encoded><![CDATA[<p>Hey Rajeev,</p>
<p>I&#8217;m glad you found the info useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeev</title>
		<link>http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-15821</link>
		<dc:creator>Rajeev</dc:creator>
		<pubDate>Tue, 31 Jul 2007 15:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://seo4fun.com/blog/2007/06/16/jdbc-classnotfoundexception-netbeans-classpath-java.html#comment-15821</guid>
		<description>Thanks a lot. I was Scratching head for one hour about the ''java.lang.ClassNotFoundException' error. Your article is very good one &#38; provides one step solution.

Please put other similiar errors also, which will help the beginners/ practitioners very much.
Thanks Again</description>
		<content:encoded><![CDATA[<p>Thanks a lot. I was Scratching head for one hour about the &#8221;java.lang.ClassNotFoundException&#8217; error. Your article is very good one &amp; provides one step solution.</p>
<p>Please put other similiar errors also, which will help the beginners/ practitioners very much.<br />
Thanks Again</p>
]]></content:encoded>
	</item>
</channel>
</rss>
