Saturday, September 8th, 2007
Installing java.sql.* The java.sql.* package contains the JDBC base API classes, which are supposed to be in the normal java.* hierachy that is distributed as part of the Java API (which includes the java.awt, java.io, and java.lang packages). Currently, the JDBC API is not distributed with the JDK, but it is slated to be included in the next release. I have a sneaking suspicion that the java.sql.* package will also be included in the future APIs of popular Java-enabled Web browsers. However, you don t have to wait for this updated software to be released. You can grab the JDBC API classes from the accompanying CD-ROM or from the JavaSoft Web site at http://splash.java.com/jdbc. As I was writing this chapter, the classes were stored in a file named jdbc.100.tar.Z. By the time you read this chapter, however, the file name may be slightly different. Once you have your software, simply follow these easy instructions to install the API classes in the proper place on your computer s hard disk. The method shown here allows you to compile and run Java applications and applets (using the Appletviewer) that use the JDBC: 1. Download the JDBC API package from the JavaSoft Web site or make a copy of the file from the CD-ROM. 2. On your hard drive, locate the directory that stores the Java API packages. (On my PC, the directory is C:JAVASRC, and on my Sun box, the directory is usrlocaljavasrc.) You do not need to install the JDBC API package in the same directory as the rest of the Java API, but I strongly recommend that you do because, as I mentioned earlier, the JDBC API will soon be a standard part of the Java API distribution and will be packaged in the Java API hierarchy. 3. Unpack the JDBC API classes using one of the following methods (for Unix-based machines or PCs), substituting the location where you downloaded the JDBC class file and the location where you want to install the JDBC classes. Unix Procedure: To upack the file, enter prompt> uncompress homeprpateljdbc.100.tar.Z. To create a jdbc directory with the classes and their source in separate directories, enter prompt> tar xvf homeprpateljdbc.100.tar.Z. To install the JDBC classes, enter prompt> cd usrlocaljavasrc, then enter prompt> mv homeprpateljdbcclassesjava, and finally enter prompt> mv homeprpateljdbcsrcjava.
If you need complete reliable cheap web hosting package, you come to right place. We offer all you need just check our cheap web hosting package section.