File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Very Beginner Database Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Very Beginner Database Question" Watch "Very Beginner Database Question" New topic

Very Beginner Database Question

Angela Martins

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.

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

Joined: Mar 22, 2005
Posts: 42965
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Very Beginner Database Question
It's not a secret anymore!