Of course you can install Java SDK 1.5 because these two libraries/applications don't have any dependency. You can have them both installed in your computer because nothing will happen. As long as they're installed in their respective folders, the computer will run fine and you should be accessed them separately.