954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Suggest Database for Java Project

Hello friends,

I am working on my final yr
project using Java Swing. Now
for the database part can
anybody tell me which I should
use among Servlets, Oracle or JSP
or anything others. I mean which
is currently used in industry at
large. Hope to get advice.

Regards
Supratim

supra
Newbie Poster
15 posts since Aug 2004
Reputation Points: 11
Solved Threads: 0
 

Oracle is used in the industry very much ... I used cloudscape in one of my database projects. ... however its your choice ... on which database manager you are prominent at and you have worked already.

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

i want to desktop application by using java, in my database project.please suggest me which project is suitable for me. i want to make an extra than my friends.

rajan09
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

Hello,

Java is compatible with any kind of database if you have the right JDBC driver. Here are several alternatives for you that would work just fine:

- MySQL
- PostgreSQL
- Access
- Oracle (you would do more than your friends, but don't know how complicated it is to install it and how much resources this is eating).

You can download and install MySQL server (this would be pretty ok

Galois77
Newbie Poster
7 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

If you have JDK 6 installed (and if you haven't, do it now!) then you already have a pretty neat, useful, free, 100% supported database installed and ready to go.
JavaDB (based on Apache Darby) is part of a standard JDK6 install.
It's very unlikely that you will need anything more than this, but if you do get into distributed servers and thousands of users mySQL is a good choice, and is also free. Migration from JavaDB is trivial.
ps: JDK6 also introduced a vastly simpler SQL interface based on annotations. 99% of all the stuff you will find out on the web still refers to the previous way of doing things, so make sure you have got the latest annotation-based versions.
http://onjava.com/pub/a/onjava/2006/08/02/jjdbc-4-enhancements-in-java-se-6.html?page=1

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

CORRECTION:
Just discovered that the annotation-based interface (which was in the JDK6 betas) didn't make it into the final release version. May be in JDK7, but that's not out yet. Sorry for the bad info.
However, JavaDB (Apache Derby) is in JDK6, and recommended.

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

H2 is another nice open source embedded database.

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

I used mySql before along with JSP and Java.
also, I tried Oracle with Java, I would prefer MySql thou.
anyways, anyone would work fine.

striker3344
Newbie Poster
19 posts since Dec 2007
Reputation Points: 10
Solved Threads: 2
 

For Java Swing projects I suggest to use SQLite. Mysql for web. Everything you need is the MySQL Connector/J to start.

martin5211
Posting Whiz in Training
271 posts since Aug 2007
Reputation Points: 52
Solved Threads: 23
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You