| | |
Quick Java Question
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2008
Posts: 5
Reputation:
Solved Threads: 0
Hey,
I have a quick java question. I am building a Java application that uses an SQL database. I was wondering if it was possible to have this desktop application use the internet to connect to an SQL database setup on a remote server? This way the program data would be accessible by any computer with this application?
Thanks,
-Josh
I have a quick java question. I am building a Java application that uses an SQL database. I was wondering if it was possible to have this desktop application use the internet to connect to an SQL database setup on a remote server? This way the program data would be accessible by any computer with this application?
Thanks,
-Josh
•
•
Join Date: Dec 2008
Posts: 5
Reputation:
Solved Threads: 0
Thanks for your response. I have another question or two. I apologize for these - I'm trying to piece things together (the textbook for school doesn't explain this very well).
My server is setup with MySQL. I located the JDBC driver: for MySQL. I've read through my textbooks and some docs that I found online, but my answer still is not clear. Do I need to install this JDBC on my server with the database or on my computer with the java application? I'm just a little confused about what needs to go where in order to make this work.
Thanks,
-Josh
My server is setup with MySQL. I located the JDBC driver: for MySQL. I've read through my textbooks and some docs that I found online, but my answer still is not clear. Do I need to install this JDBC on my server with the database or on my computer with the java application? I'm just a little confused about what needs to go where in order to make this work.
Thanks,
-Josh
The Type 4 JDBC Driver for the MySQL database which you are talking about needs to be on the client, where your java application is running.
Its exactly like using third party java libraries in your program. The "jar" file needs to be in your classpath while you are compiling and running your program.
Its exactly like using third party java libraries in your program. The "jar" file needs to be in your classpath while you are compiling and running your program.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
"How to ask questions the smart way ?"
Josh also make sure that your database server is capable of external access, MySQL is often installed as local and cannot be accessed from outside world
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- quick java question(chars) (Java)
- Quick Question: Is J# the same thing as Java? (Java)
- Quick Project Question{ (Java)
- Java Executable? (Java)
Other Threads in the Java Forum
- Previous Thread: Mobile agent in java
- Next Thread: Pioneers talking about cloud computing secrets at Sun Microsystems Conference
Views: 430 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database detection draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linux list loop map method methods mobile netbeans newbie number object objects oracle oriented os panel print problem program programming project projects recursion replaydirector reporting researchinmotion return robot scanner score screen se server set size sms socket sort sql stream string swing test threads time transfer tree ubuntu windows






