wood burning stoves 2.0*
The moose likes JDBC and the fly likes Very Beginner Database Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Very Beginner Database Question" Watch "Very Beginner Database Question" New topic
Author

Very Beginner Database Question

Angela Martins
Greenhorn

Joined: Apr 12, 2006
Posts: 1
I am very very new to Java programming so please keep your answers simple. I have never used a database with Java in the past and I am trying to create a program that needs one.

This question is probably won't be a short answer so I think I am looking for a link to somewhere I can learn this.

I have a group of several linked DBF files and want to be able to create a search on Java so I can draw up information from these DBF files.

This is a link to the information on the DBF file linking followed be a link to the actual DBF Files if it will help make my question make sense.

http://www.hc-sc.gc.ca/fn-an/nutrition/fiche-nutri-data/cnf_file_structure-des_fichiers_fcen_2005_e.html

http://www.hc-sc.gc.ca/fn-an/nutrition/fiche-nutri-data/cnf_downloads-telechargement_fcen_e.html

I am making an offline application and I need to be able to search this data.

I am thinking I can either find out how to convert the DBF files into something else or learn how to use the databases as they are.

Even if I convert the DBF file I have really been at a loss to find any good tutorials on how to integrate databases into Java.

If anyone could help with this I would relaly apreciate it.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
Hello Angela-

Welcome to JavaRanch.

First, a bit of business. On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.

Next up, JDBC (which is the standard Java API to access databases). The Sun Java Tutorial has an introductory section about JDBC.

Then, DBF. There are various ways of accessing DBF files with Java. Either by creating an ODBC data source for it, and then using JDBC to access that, or by accessing DBF files directly via a Java library that can read them, e.g. this one. Either of the two methods would probably work in your case, although I can't vouch for this particular library.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Very Beginner Database Question