Installing MySQL, Java, and Connector/J 64 Figure 4.2 (Non profit web hosting)
January 7th, 2007Installing MySQL, Java, and Connector/J 64 Figure 4.2 Testing MySQL. Installing Java Once the MySQL database server is installed, it s time to install Java. You can find the Java software development kit (SDK) at http://java.sun.com/ j2se/1.4.1/download.html. When you get to this page, you see downloads for numerous platforms and options for either the Java Runtime Environment (JRE) or SDK. Be sure to grab the SDK so you will be able to write code with Java. For Windows, you will find an EXE file to download. When the file has finished downloading, double-click on it to launch the installation wizard. Just a few clicks through the wizard is all it takes to install Java on Windows. When the Java installation wizard has finished installing Java, add the path to the /bin directory of the installation to the system PATH environment variable. That way, you will have access to the Java tools from a Windows command prompt. For Linux, you will find both an RPM and a self-extracting BIN file. If you download the RPM file, it will initially include a BIN extension, which you need to remove. Install the RPM with the rpm-I command. If you download the BIN self- extracting file, you need to change the file to have execution permissions with the chmod a+x command. Once permissions are set correctly, just execute the file to install Java. Full instructions for installing the Windows, Linux, and other environments can be found at http://java.sun.com/j2se/1.4.1/install.html if you run into problems. Testing the Java Installation Once Java has been installed, you should test the installation. To do this, create a file called hello.java and add the following code: public class hello { public static void main(String[] args) { System.out.println(”Hello World It Works”); } }
Hint: This post is supported by Gama web hosting php mysql provider