Topic awaiting preservation: JDBC problems |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: Frederick, MD, USA |
posted 11-20-2003 10:39
I've been trying to get some JDBC stuff to work with my applets, but I've been having a lot of trouble. I've mostly been following the Java Tutorial trying to learn the basics, so the applet is simply trying to read a few rows and display them, one per line. The stuff I run from a command prompt (ie "c:\java MyDBCrap") works fine, but when I try to run the applet, I get various errors. I've tried it with both MySQL (via their driver "com.mysql.jdbc.Driver") and Access (via the JDBC ODBC bridge driver "sun.jdbc.odbc.JdbcOdbcDriver"). Mostly on MySQL I get a ClassNotFoundException when I try to run it through my webserver (localhost only). If I run it through the appletviewer app, I get a permissions error. I've seen very similar errors with the access database. I've tried signing the applet and I've tried running the db from localhost and applet from the computer's ip (or vice versa...). If anyone can give me a explanation or link about why this is happening and how I can get a simple applet to have db access, I'd appreciate it. |
Bipolar (III) Inmate From: New Jersey, USA |
posted 11-20-2003 11:51
If you could post the actual errors you receive, it would provide alot more information for us to look at. One suggestion that I have is to make sure that you have an evironment variable JAVA_HOME which points to your JDK. Also, for the MySQL issue, if you are moving the applet to a different directory, make sure that you also have moved the JDBC drivers as well. |
Obsessive-Compulsive (I) Inmate From: Frederick, MD, USA |
posted 11-24-2003 22:24
Okay. The one I'm having the most problem with is: |
Paranoid (IV) Inmate From: Willaimsport, PA, US of A the hole in the Ozone |
posted 11-28-2003 20:50
quote:
|