aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes How to open .db file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "How to open .db file?" Watch "How to open .db file?" New topic
Author

How to open .db file?

Tien Fu Liu
Greenhorn

Joined: Jun 22, 2003
Posts: 8
Hi:
I am new to java batabase.
I just join the scjd exam.
From the document that sun gave me,
I found a db-2x3.db file.
Can anyone teach me how to open this file?
And also what kinds of database system is best for java scjd exam.
Thanks
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 10816
    
  25

Hi Tien Fu,
Welcome to JavaRanch.
As Lasse mentioned in this thread, the database format is a custom one designed for these assignments.
You should have received a file called instructions.html. Inside the instructions you will find a detailed description of the database format. You have to write a class or classes to read this file.
There should be one class, called Data.java, which implements the interface described in the instructions, which is the public access to the database.
Does this make sense?
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 10816
    
  25

Hi Tien Fu,
To give you some ideas to work with
  • some people are using Random Access File to access the database, as discussed (briefly) in this thread
  • some are using File Chanels, as discused in this thread, and this thread
    Regards, Andrew
  • Mark Spritzler
    ranger
    Sheriff

    Joined: Feb 05, 2001
    Posts: 17234
        
        1

    I deleted the duplicate post of this thread. This seems to have the best answers in this one anyway.
    Tien, try to avoid duplicate posts, either in the same forum or across forums. Thanks
    Thanks Andrew.
    Mark
    [ June 24, 2003: Message edited by: Mark Spritzler ]

    Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
    How to Ask Questions the Smart Way FAQ
     
    I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
     
    subject: How to open .db file?
     
    Similar Threads
    How can I open *.db file ?
    Database file
    How can I open *.db file ?
    UrlyBird Passed (381/400)
    how to open database file