Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

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

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

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.