QueryViewer example from the text.
QueryViewer.setup.exe file. Let it install itself at its default location (in C:\mysql). If you install it anywhere else, you will have to modify one or more configuration files. (See the rather extensive documentation that comes with the download. I once installed it somewhere else, and even though I went though an uninstall process, I couldn't get Windows NT to forget that the previous installation was on my G: drive. To get the new installation to run, I had to move a couple of files to the G: drive.)
QueryViewer directory. It will be a .jar file.
CLASSPATH. A .jar file functions like a directory, so make sure the .jar file itself is in the CLASSPATH. E.g.,
set CLASSPATH=%CLASSPATH%;C:\CS320\QueryViewer\mm.mysql-2.0.4-bin.jar.
If you are using JBuilder, include the .jar file as a required library.
QueryViewer/cwp subdirectory and download the QueryViewer's .java files..java files can be found in abbott.calstatela.edu/courses/cs320b/QueryViewer/cwp. Download them to your own QueryViewer/cwp directory. These files are a revision of the book's QueryViewer (archive.corewebprogramming.com/Chapter22.html) to accommodate MySQL. The original is set up for just Oracle and Sybase.
The MySQL URL ("jdbc:mysql://" + host + "/" + dbName) and driver ("org.gjt.mm.mysql.Driver") strings are found in DriverUtilities.java.
.java filesC:\mysql\bin. Execute mysqld --standalone
or mysqld-nt --standalone.
java cwp.QueryViewer