Installation - MySQL and JDBC, JDK
Installing and Configuring MySQL and JDBC driver in Windows:
http://www.stardeveloper.com/articles/display.html?article=2003090201&page=1
Installing and Configuring MySQL and JDBC driver in Linux:
JDK Installation
Find the compatible JDK for your OS from:
http://java.sun.com/j2se/1.5.0/system-configurations.html
Installing JDK 1.x on Windows:
1. Download the appropriate JDK (.exe)from
https://sdlc1b.sun.com/ECom/EComActionServlet;jsessionid=
0A7FFCE7000309A58F5AF40743F20ADA
2. Run the .exe and specify the location where you want to install [Eg. C:\j2sdk_1.4]
3. Add the path of JDK in the PATH environmental variable.
[Setting JAVA_HOME is optional, the jdk will work even if you don't set this as you
are setting the path in the PATH variable. However, if you are installing Tomcat, you
need to set JAVA_HOME along with CATALINA_HOME]
4. Open Command Prompt check if the PATH variable is updated using “set” command.
5. Type “javac” if the setup is working.
6. You can check the JDK version using “java -version” on command prompt
Installing JDK 1.x on Linux:
Note: Install formats - JDK 5.0 is available in two installation formats.
* Self-extracting Binary File - This file can be used to install the JDK in a location chosen by the user. This one can be installed by anyone (not only root users), and it can easily be installed in any location. As long as you are not root user, it cannot displace the system version of the Java platform suppled by Linux.
* RPM Packages - A rpm.bin file containing RPM packages, installed with the rpm utility. Requires root access to install, and installs by default in a location that replaces the system version of the Java platform supplied by Linux.
Go for Self-extracting Binary File since it is convenient.
1. Download the appropriate JDK (java_ee_sdk-5_03-linux.bin)from:
https://sdlc1b.sun.com/ECom/EComActionServlet;jsessionid=
0A7FFCE7000309A58F5AF40743F20ADA
2. Change to the directory where you downloaded the SDK and make the self-extracting binary executable:
# chmod +x jdk-1_5_0_01-linux.bin
3. Run the self-extracting binary, this will display the License agreement text and will ask you to accept the agreement:
# ./jdk-1_5_0_01-linux.bin
Above command should create a directory called jdk1.5.0_01 in the same directory
4. Move the SDK directory to /usr/java/. Create /usr/java if it doesn’t exist. Here is the command used:
mv jdk1.5.0_01 /usr/java
5. Set the path to jdk in the PATH environmental variable using:
# export PATH = /usr/java/jdk1.5.0_01:$PATH
JAVA_HOME can also be set (optional), required for Tomcat:
1. Set the JAVA_HOME environment variable, by modifying /etc/profile so it includes the following:
# JAVA_HOME=”/usr/java/jdk1.5.0_01″
# export JAVA_HOME
2. Check to make sure JAVA_HOME is defined correctly using the command below. You should see the path to your Java SDK.
# echo $JAVA_HOME
Output should be
/usr/java/jdk1.5.0_01
Filed under: Tech | Tagged: installation