0

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

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

1 Answer 1

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.

2
  • oh god, mangling the Linux alternatives setup for your own purposes is such a bad idea. Please don't.
    – Ophidian
    Sep 8, 2010 at 13:28
  • Hundreds of happy servers and counting...
    – kmarsh
    Sep 8, 2010 at 19:18

You must log in to answer this question.