So which OSX version are you using?
Generally it's a Java issue. Answer is often to re-install Java.
http://www.apple.com/downloads/macos...update142.html
If it won't allow you to install it, go to your receipts folder, remove Java1.4.2_2 & try again.