Author
connection with database in netbeans (Read 322 times)

Post: 15
connection with database in netbeans
on: Monday 02 November, 2009, 11:54:05 AM

I need to develop a project where connection with java db is required. Could you please tell me what are the steps to establish this connection? and how to create the tables?

No Image
Post: 46
Re: connection with database in netbeans
on: Thursday 05 November, 2009, 07:52:30 AM

Java db is the database embedded in java so you dont need any third party software to maintain you database, it is by default with java runtime environment. To connect with java db in netbeans.
  1. Click on services tab >> databases
  2. right click on java db >> start server
  3. right click on java db >> create database
  4. Now the database you created appears below in the list, click on the plus sign >> right click on the table and create tables and their attributes
  5. Now click on File >> New Project >> java desktop application >> next
  6. Type a name for your project >> select database application >> check "use dedicated folder for storing libraries" >> next
  7. select the database you just created>> the table and add the column>>next>>finish


Post: 15
Re: connection with database in netbeans
on: Thursday 05 November, 2009, 09:00:21 AM

Thanks so much.