Storefront hosting - Installing Connector/J 65 Compile the code with the

Installing Connector/J 65 Compile the code with the command javac hello.java If you get an error saying the javac command cannot be found, then you will need to check the path to the /bin directory; this means that the system is unable to find the Java compiler in the /bin directory. If things work out correctly, execute the Java with java Hello You should see the text Hello World It Works on your screen. If you don t see this text, check Sun s instructions to correct the installation. Installing Connector/J If you refer to Figure 4.1, you see that both the Production and Development areas have downloads available for Connector/J. Clicking on either of the links brings you to the respective page for that particular version of the code. In both cases, two files are available for download: a zip and a tar.gz. Most of the code in the remainder of this blog executes under the Production version of the code, but better performance and many small JDBC support changes are available in the Development 3.0 version. Our test machines used the 3.0 version of Connector/J. If you download the zip version of the code, we assume you are installing on a Windows box and that the tar/gz version for Linux or another Unix flavor. In either case, you need to uncompress the file to expose both the source code for the driver as well as a JAR file called (in 3.0) mysqlconnector-java-3.0.1-beta-bin.jar. This file contains all of the necessary class files for the driver. There are a few ways to install the driver. The first is to copy the /com and /org files into another directory listed in your classpath. Another option is to add the full path to the JAR file to your CLASSPATH variable. Finally, you can just copy the JAR file to the $JAVA_HOME/jre/lib/ext directory. On a Windows platform (if you installed SDK1.4.1), the directory is found at /program files/java/j2re1.4.1/lib/ext. Just copy the JAR file to that directory, and the library will be available for applications that execute within the Java Virtual Machine. On a Linux platform using SDK 1.4.1, the directory where you want to place the JAR file is /usr/java/j2sdk1.4.0/jre/lib/ext.
Note: If you are looking for reliable and quality webspace company to host and run your servlet application check professional servlet hosting services

Comments are closed.