while installing oracle on linux red hat 5 its giving java.lang error how can i get rid of it?

link|improve this question
4  
You're a long way from The Perfect Question: msmvps.com/blogs/jon_skeet/archive/2010/08/29/… – duffymo Sep 8 '10 at 9:23
1  
Installing Oracle? I cannot install a company ^O). What exactly (application) are you installing? – The Elite Gentleman Sep 8 '10 at 9:26
2  
Please post the complete error message/stack trace. – Christian Sep 8 '10 at 9:34
You could install Windows? Usually helps. – Thorbjørn Ravn Andersen Sep 8 '10 at 12:08
feedback

migrated from stackoverflow.com Sep 8 '10 at 9:29

This question came from our site for professional and enthusiast programmers.

1 Answer

The most likely cause of applications on RHE5 throwing Java errors (assuming Java is found at all) is the default Red Hat Enterprise install that points /usr/bin/java at /etc/alternatives/java and thence to a RH-provided non-Sun/Oracle Java.

For maximum compatibility, install the version of Oracle Java recommended by the application's install notes. Delete /etc/alternatives/java and recreate it soft-linked to this Java.

link|improve this answer
oh god, mangling the Linux alternatives setup for your own purposes is such a bad idea. Please don't. – Ophidian Sep 8 '10 at 13:28
Hundreds of happy servers and counting... – kmarsh Sep 8 '10 at 19:18
feedback

Your Answer

 
or
required, but never shown