Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Affiliate Marketing Hangout > Internet Marketing Articles > SEO / SEM
Reload this Page JDBC ClassNotFoundException (NetBeans, Classpath, Java)
Tags: , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
SEO Blogs is Offline
Revenue Source Veteran
SEO Blogs is worth a listen.SEO Blogs is worth a listen.SEO Blogs is worth a listen.
 
SEO Blogs's Avatar
 
Join Date: Jul 2005
Posts: 843
   
JDBC ClassNotFoundException (NetBeans, Classpath, Java) - 06-16-2007

If you get a java.lang.ClassNotFoundException error when loading a database driver using the statement:
Class.forName({nameOfYourDriverWhateverItIs}).newI nstance();
You can either:
Set CLASSPATH in DOS

Go into DOS (Start/Run/cmd.exe):
set CLASSPATH=.;{pathToYourJarFile}
For example, if your jar file is at: C:/Program
Files/java/jdk1.6.0_01/lib/mysql-connector-java-5.0.6-bin.jar,
Type:
set CLASSPATH=.;C:/Program Files/java/jdk1.6.0_01/lib/mysql-connector-java-5.0.6-bin.jar
Now,
javac YourJavaFile.java
java YourJavaFile
That’s all. But it won’t work if you’re trying to run code in Netbeans.
Set Your Project’s Classpath in Netbeans

If you’re using netbeans, set your project’s classpath.
1. Right-click on your project.
2. Select “Properties.”
3. Click “Libraries.”
4. Click “Add JAR/Folder”
5. Choose your MYSQL driver JAR file.
Why This Has Anything to Do With SEO


It took me over 30 minutes to find this solution. I was this close to throwing in the towel. So once I figured out the solution, I wrote a page I wish I found at the top of Google’s search results when I looked for “jdbc classnotfoundexception.” That way, other people looking for the same information won’t be frustrated like I was. Because I’m working in a long tail space, to get this page to rank high I just optimized the content. But I didn’t keyword spam or pepper my H tags with related terms. Instead, I optimized for you.
Yep, you.
Ok, so it’s not perfectly optimized for you if you’re an RSS subscriber of mine, since you’re interested in SEO, not Java. But if you found this page through Google, you’re thanking me now because:
  • I give you exactly what you were looking for.
  • I get straight to the point. Instead of starting off with a long irrelevant opening paragraph, I explain the problem and give you the answer. Instant gratification baby.
  • I keep it short. I use as few words as I can to save you time.
  • I keep it simple. Instead of trying to crack you up with dumb jokes or titilate you with fancy metaphors, I use simple words so even a caveman can “get it.”
Some people say ranking is about links, not content. Is it better to be tall and rich, or loyal and charismatic? Why are marketers trying to convince you its all about looks? (Yeah, just think about that for a minute :D)
Given two websites with equal visibility, the site that publishes the most compelling content will always win, showering the site with even more visibility. If marketing is all it takes, Paris Hilton would have sold more CDs.
Related Articles:

A few articles that both helped me and frustrated me (hint: natural outbound links to relevant, authoritative pages will help you win Google’s trust):
JDBC ClassNotFoundException (NetBeans, Classpath, Java) - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: JDBC ClassNotFoundException (NetBeans, Classpath, Java)
Thread Thread Starter Forum Replies Last Post
JSLabs Blog: PHP+Java=Resin Affiliate Blogs Programming Help 0 01-23-2007 01:12 PM
Julian on Software: PHP vs Java IMHO Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
Java World: BEA showing PHP on Java app server Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
John Anderson's Blog: Sip of Java Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
Sun to Serve Up Free Java Affiliate Marketing News Internet Marketing Articles 0 11-13-2006 08:33 PM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34