my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Learing database is missing from the Java book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Learing database is missing from the Java book" Watch "Learing database is missing from the Java book" New topic
Author

Learing database is missing from the Java book

Yasser Youssef
Greenhorn

Joined: Oct 06, 2007
Posts: 1
Hey all!

hope you're all fine.

I am a C# developer who wants to "upgrade" to Java. I bought lots of books from HeadFirst. One of them called "Learn Java". It's a great book. But while i was browsing the contents table, I couldn't find any topic about how to interact with the databases! In C#, we learn the ADO.NET and how to use this framework.

Why was is missing from the book? Where can I find it? Are these other books that deal with this topic?

Please help .. i want to start working using Java.

Thanks a lot,
Yasser H. Youssef
Senior Web Applications Developer
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Hi Yasser,

Database connectivity with Java is JDBC. I'm not sure why the book doesn't cover JDBC. I'm not sure what DBMS you are using. For example let say you use MySQL. Then the following code should get you started:



The JDBC driver is the key, once found MySQL drivers, make sure to place it in the "lib/ext" directory of the JRE.

Hope this helps.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

once found MySQL drivers, make sure to place it in the "lib/ext" directory of the JRE.
I don't think this is common practice.

Just add the jdbc driver to your classpath.

Regards, Jan
[ October 06, 2007: Message edited by: Jan Cumps ]

OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Learing database is missing from the Java book
 
Similar Threads
need to start preparing for SCJP 5.0
Discussion about Wrox
how to become Java Developer
About your book
Java to C/C++