How to run database program outside the Netbeans IDE?

后端 未结 3 1700
天涯浪人
天涯浪人 2021-01-20 15:30

I am really new to database and this is my first program in database using java Netbeans 7.1 --- It is summer on our country now and I am a student with the course I.T. Our

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 15:52

    The default database in Netbeans is Derby/JavaDB. So you need to:

    • add the jar of javadb/derby in our classpath (it maybe already present, as it is bundled with java when you install it in Ubuntu)
    • setup a path with the jdbc URI to save the database data

    I personally recommend the usage of hsqldb or H2 for this: they support in-memory database, very useful for stand alone project with no persistence data or for tests.

提交回复
热议问题