Go to the directory where eclipse is installed and find a file called eclipse.ini. Open it and add the following line
-vm
C:\Java\JDK\1.5\bin\javaw.exe
Make sure:
1.) You add that text before any -vmargs option that may be in that file.
2.) The -vm is on its own line and the path to javaw.exe is on its own line.
3.) You specify the full path to your JDK 1.5's javaw.exe