Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Repost: Java link problem

Re: Repost: Java link problem

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sun, 23 Dec 2001 09:48:08 +0100
Message-ID: <md6b2uk1t9786egmslprq4f2bg7nvd4qim@4ax.com>


On Sat, 22 Dec 2001 13:40:59 -0800, "FredM" <fredmotta_at_centurytel.net> wrote:

>I'm posting again. If you know the answer to this, please post. Thank you.
>==================
>Original post:
>I'm trying to install Oracle8i on Linux (Mandrake 8.1) and after several
>days, I'm starting to see some progress, but just barely. I do mean BARELY.
>I picked up the Macmillan (publisher) package at a half price bookstore and
>thought this was going to be a breeze. The install documentation is fair,
>and probably makes sense to experience Linux users. I'm just not there yet.
>
>Well, here's what I've done so far:
>- As root, set up mount points for software: /Oracle/u01; for databse:
>/Oracle/u02.
>- Created a 'dba' group.
>- Created an 'oinstall' group.
>- Create an 'oracle' user.
>- Assigned 'oracle' user to 'dba' group.
>- Assigned 'oracle' user to 'oinstall' group.
>- Made 'oinstall' group the primary group for 'oracle' user.
>- Set up environment variables in ./etc/profile.d/custom.sh' file to load on
>startup: (export ORACLE_BASE=/Oracle/u01/app/oracle); (export
>ORACLE_HOME=/Oracle/u01/app/oracle/product/8.1.5); and (export
>DISPLAY=computer_name:0.0).
>- I created the folders '/Oracle/u01/app/oracle' and
>'/Oracle/u01/app/oracle/product/8.1.5)' because it was odd that this would
>be in the environment but no folders existed (book didn't say to create
>them??).
>- I downloaded 'jre-1.2.2-RC4-linux-i386-glibc-2.1.2.sh' from
>www.blackdown.org and installed it to /usr/jre.
>- I added '/usr/jre/bin' to the $PATH in ./etc/profile.d/custom.sh'.
>There's a link in '/usr/jre/bin' named 'java'.
>- I tested 'java -version' and it looks right to me. See the following
>output.
>
>And now, here's where I'm getting hung-up. The installation instructions
>say to create a symbolic link to the jre as in '/usr/local/jre' to
>'installed_path_of_jre/jre_116_v5' assuming that the downloaded version of
>jre is named 'jre_116_v5'. Okay, so what does this mean? Make a symbolic
>link to the 'java' symbolic link? Make a link to folder '/usr/jre'?
>'/usr/jre/bin'? And does it say WHERE to put that link? NO! So, I
>experiment... alot. I do variations of the following which seems to be as
>close to these instructions as I can think of: 'ln -s /usr/jre/bin/java
>/usr/local/jre'. And this is what I get under the 'oracle' user after
>mounting '/mnt/cdrom' and running ./runInstaller:
>
># This is my java test:
>[oracle_at_nebula cdrom]$ java -version
>java version "1.2.2"
>Classic VM (build Linux_JDK_1.2.2_RC4, native threads, sunwjit)
>
># This is what's on the cdrom:
>[oracle_at_nebula cdrom]$ ls
>BonusChapter/ Examples/ install/ relnote.pdf runInstaller*
>Translations/
>doc/ index.htm relnote.htm rr_moved/ stage/
>
># Here's where I run the installer:
>[oracle_at_nebula cdrom]$ ./runInstaller
>Initializing Java Virtual Machine from /usr/local/jre/bin/jre. Please
>wait...
>Error in CreateOUIProcess(): -1
>: No such file or directory
>
>
>That line [blah, blah, blah.."from /usr/local/jre/bin/jre."] just doesn't
>make sense to me. The '../bin/jre' part of that message suggests that the
>'java' link in '/usr/jre/bin' should be renamed as 'jre', but that's nuts!
>So, what's the answer?
>
>FredM
>
>
>
>

The answer is that you need to set up a soft link called /usr/local/jre which is pointing to
installed_path_of_jre/jre_116_v5

so ln -s /usr/local/jre installed_path_of_jre/jre_116_v5

and that is all
(please use man ln, sometimes I swap sides)

It is really *all* there.

Regards

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Sun Dec 23 2001 - 02:48:08 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US