• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

Netbeans and Databases

As of now, to use a database in my application(mySQL for example)  I download the driver .jar file add it to my classpath and everything works great.  I was wondering what happens when you add the driver through the runtime tab in Netbeans?  Is this the proper way to use databases?  Once I connect to it what can I do?  Bascially I'm looking for an explantion of this feature.  I looked in the help file, but all I got was a how-to, not a why.

Thanks.
0
turtletimer
Asked:
turtletimer
  • 5
  • 2
  • 2
1 Solution
 
aozarovCommented:
>> Is this the proper way to use databases?
You can run your application from netbeans as you run it from the command line.
Just add the needed classes (that you use for the program) in the Runtime Classpath option.
0
 
CEHJCommented:
>>Once I connect to it what can I do?

What do you *want* to do?
0
 
aozarovCommented:
>> needed classes
Means also any supported jars (e.g mySQL driver jar)
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
turtletimerAuthor Commented:
>>You can run your application from netbeans as you run it from the command line.
>>Just add the needed classes (that you use for the program) in the Runtime Classpath option.

I know I can do this and it works great.

>>What do you *want* to do?

I don't know what I want to do with it because I don't know what I can do with it.  


Okay fellas, I was just looking around in Netbeans and I saw this.  I have no idea what it does or what it can do.

My Question:

What can you do with the Database tree item under the Database tab?
0
 
aozarovCommented:
>> what can you do with the Database tree item under the Database tab?
This is just a DB client where you can connect and send sql queries in editor and also
see the list of tables. For connecting to a DB you will need to configure the driver, jdbc url string username and password
0
 
aozarovCommented:
Its basically an integrated standard jdbc client with a nice UI to present the schema and editor to send sql commands and see the results.
0
 
CEHJCommented:
Try creating a few tables and then querying them after populating
0
 
turtletimerAuthor Commented:
I don't have a database to connect to and test.  This is why I had no idea what it's purpose was. Thanks.
0
 
aozarovCommented:
NP. :-)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now