Hey everyone, this has been kind of blurry to to me for quite a while. I was wondering, what is needed to connect to a Java database…well not so much as “how do i do it” but for example, I created a program that let you type something, enter it and it sent it to the database and the next time you opened up the program it would read all the strings entered from other people or yourself. It all seemed to work fine until i gave my friend the executable Jar. When he ran it, nothing was displayed, which i guess meant it could not connect to the database (is it because its not local or something?)
But lets put it this way. (this has nothing to do with my old program)
I have a Database on my website (I used CPanel to create it) and I have the JDBC installed (not sure how to make sure i do have it installed but im pretty sure i do) but what is needed now for me to connect to my database?