Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes

How do you create a connection between java and a database and then call that connection/implement it into other classes? Currently our entire project is in one class and it is extremely cluttered and hard to read through. If we were to have the connection code in a separate class, what is the best way to access said connection?

asked in CSC305 Fall 2019 by (1 point)

2 Answers

0 votes

Locate the database you want to access. include the JDBC library.

answered by (1 point)
0 votes

make sure the JDBC drive is on your calsspath.

answered by (1 point)
...