5 messages in com.mysql.lists.javaIs it everything ok with my CLASSPATH?| From | Sent On | Attachments |
|---|---|---|
| Vladimir Novakovic | 03 Mar 2000 17:20 | |
| Vladimir Novakovic | 03 Mar 2000 23:41 | |
| Vladimir Novakovic | 07 Mar 2000 00:58 | |
| Carlos Proal Aguilar | 07 Mar 2000 14:39 | |
| Vladimir Novakovic | 11 Mar 2000 04:44 |
| Subject: | Is it everything ok with my CLASSPATH?![]() |
|---|---|
| From: | Vladimir Novakovic (V.No...@ai.sanu.ac.yu) |
| Date: | 03/07/2000 12:58:06 AM |
| List: | com.mysql.lists.java |
Does this list have any digest or archive. My questions are basic, so I hope that I don't need to bore other subscribers.
Does anyone have idea or some sample code how to get image which is stored into mySQL table. I'm apsolute beginner for JDBC and mySQL so I need some help or good refence about that. Which classes I can use for that?
You need the mm mysql jdbc driver (MySQL downloads). From there on, it depends on what you want to do. Are you writing an Applet/Application or a servlet.
Sorry because I couln't answer earlier, I just tested mm.mysql-jdbc-1.2b. I tried to make applet (I need applet), but I couldn't make any good result. :-( I tried to compile LoadDriver example, but I got messages:
C:\WEB\jdbc>javac LoadDriver.java Statement Stmt = Conn.createStatement(); ^ LoadDriver.java:26: Undefined variable or class name: Conn Statement Stmt = Conn.createStatement(); ^ LoadDriver.java:28: Class ResultSet not found. ResultSet RS = Stmt.executeQuery("SELECT fldsiteId from tblsites"); ^ LoadDriver.java:35: Variable RS may not have been initialized. RS.close(); ^ LoadDriver.java:37: Undefined variable or class name: Conn Conn.close(); ^ LoadDriver.java:40: Class SQLException not found. catch (SQLException E) { ^ LoadDriver.java:47: Class SQLException not found. catch (SQLException E) { ^ 9 errors
C:\WEB\jdbc>
As you could see I'm working under Windows, I put my CLASSPATH but I'm not sure that everything is ok with path to mm.mySQL JDBC?!
My classpath is look like:
SET CLASSPATH=\PROGRA~1\JDK12~1.2\LIB\classes.zip;.;\PROGRA~1\MMMYSQ~1.2B;%CLASS PATH%
My folders have correct spelling. Am I make good syntax for CLASSPATH? Do you have any java example that I can use for learning?
Thanks in advace, Vladimir




