Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

local database for java project?

school assignment!

i have a java project i need to write that reads data in from a comma delimited text file and blahhhh

but for extra credit we can use a database instead of a text file

i dont want to pay for a host and all that

so is there a way to create a database that is in my java package so i can use sql?

im using netbeans

i need everything to be in my java package so when i turn it in to my teacher

he doesn't need to download extensions or whatever,...

thanks!!!

1 Answer

Relevance
  • Anonymous
    7 years ago

    no.

    but if we know what software the database server is then

    we can prepare a jdbc driver of that database server.

    we can compile the source code of that jdbc driver with the project source code and package all folders containing .class files inside a .jar file.

    the java program can accept a database url as an argument to public static void main (String args[])

Still have questions? Get your answers by asking now.