How to connect?

Hello all I'm trying to deal with the connection of a database with a java app made with Netbeans. Can anyone tell me how to do that? where to go inside the IDE to setup the connection? is there anything else i have to configure outside the IDE?thanks :D
[283 byte] By [River_Platea] at [2007-11-27 8:28:44]
# 1
Oh never mind, you recently tried to cheat on a midterm.In that case, go **** yourself. http://forum.java.sun.com/thread.jspa?threadID=5184754&messageID=9719564#9719564Message was edited by: Djaunl
Djaunla at 2007-7-12 20:18:48 > top of Java-index,Java Essentials,New To Java...
# 2

The only thing that NetBeans has in common with Microshit Visual Studio is that it is an IDE. There are no special areas (that I am familiar with at least) where you set up Database Connections. If you want to connect to a database, I would recommend you visit the Java Database Connectivity Tutorial (JDBC tutorial):

http://java.sun.com/docs/books/tutorial/jdbc/

If you have any questions AFTER YOU HAVE THOROUGHLY READ AND APPLIED THE LESSONS LEARNED FROM THE TUTORIAL, feel free to come back and we will be happy to help you.

Navy_Codera at 2007-7-12 20:18:48 > top of Java-index,Java Essentials,New To Java...
# 3
Thanks Navy
River_Platea at 2007-7-12 20:18:48 > top of Java-index,Java Essentials,New To Java...
# 4

You would have to do the following:

1. get a jdbc driver for your database

2. find out the port/url your db is using

3. be able to access this db (I mean know user/password combination)

4. add the driver to the project's libraries and/or in the netbeans Runtime tab, click Databases, Drivers, right click on Drivers node and click Add Driver..

5. In Netbeans go to Runtime tab, click Databases, new Connection and follow the wizard.

Hope this helps!

Kris

kris_javaa at 2007-7-12 20:18:48 > top of Java-index,Java Essentials,New To Java...