1753813 Members
7960 Online
108805 Solutions
New Discussion юеВ

Re: oracle jre use

 
Rentenaar
New Member

oracle jre use

Hi,

We are running oracle 9.2.0.4 on 11.11
Had a problem with oracle, support told
me jre is not compatible with jvm
We have java1.4 installed and jre is 1.1.8
Oracle makes use of jre executable in scripts
and this goes thru the link in $ORACLE_HOME/JRE which is pointing to /opt/java/jre where jre 1.1.8 is located

This is the only location where I can find a jre. How should I upgrade to a higher jre if all new java version don't seem to have a jre included?

Hope you can help soon because we have a deadline for this project very soon

Tnx,

Jeroen
5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: oracle jre use

Hi Jeroen,
Look:
hooke1:/opt/java $ ll|more
total 3626
-r--r--r-- 1 bin bin 1898 Jan 27 2001 COPYRIGHT
-r--r--r-- 1 bin bin 8500 Jan 27 2001 LICENSE
dr-xr-xr-x 3 bin bin 1024 Mar 20 2001 bin
dr-xr-xr-x 24 bin bin 1024 Mar 20 2001 demo
dr-xr-xr-x 3 bin bin 96 Mar 20 2001 docs
dr-xr-xr-x 5 bin bin 2048 Mar 20 2001 include
-r--r--r-- 1 bin bin 1488 Jan 27 2001 index.html
dr-xr-xr-x 3 bin bin 96 Mar 20 2001 jre
dr-xr-xr-x 4 bin bin 1024 Mar 20 2001 lib
dr-xr-xr-x 3 bin bin 96 Mar 20 2001 newconfig
-r--r--r-- 1 bin bin 1837604 Jan 27 2001 src.tar.Z
hooke1:/opt/java $ cd ../java1.2
hooke1:/opt/java1.2 $ ll
total 8944
drwxr-xr-x 4 bin bin 1024 Jan 8 2002 bin
drwxr-xr-x 5 bin bin 96 Jan 8 2002 demo
drwxr-xr-x 3 bin bin 96 Jan 8 2002 include
drwxr-xr-x 3 bin bin 1024 Jan 8 2002 include-old
-r--r--r-- 1 bin bin 40210 Mar 30 2001 java.os11.release.notes
dr-xr-xr-x 4 bin bin 1024 Feb 6 2001 jre
drwxr-xr-x 2 bin bin 96 Jan 8 2002 lib
dr-xr-xr-x 2 bin bin 96 Feb 6 2001 plugin
-r--r--r-- 1 bin bin 4535058 Mar 30 2001 src.jar
hooke1:/opt/java1.2 $ cd ../java1.3
hooke1:/opt/java1.3 $ ll
total 9816
-r--r--r-- 1 bin bin 1761 Jun 26 2002 COPYRIGHT
-r--r--r-- 1 bin bin 7668 Jun 26 2002 LICENSE
drwxr-xr-x 4 bin bin 1024 Jan 7 2004 bin
drwxr-xr-x 6 bin bin 96 Oct 11 2001 demo
drwxr-xr-x 3 bin bin 96 Feb 28 2002 include
-r--r--r-- 1 bin bin 60007 Jun 28 2002 java.os11.release.notes
drwxr-xr-x 4 bin bin 1024 Jan 7 2004 jre
drwxr-xr-x 2 bin bin 1024 Feb 28 2002 lib
-r--r--r-- 1 bin bin 4951843 Jun 26 2002 src.jar
hooke1:/opt/java1.3 $

You have the choice...

All the best
Victor

Rentenaar
New Member

Re: oracle jre use

Sorry but interesting might be what's in your jre directory because I can't find a jre executable and this is what oracle is looking for in several scripts.

My install of java1.3:
/opt/java1.3/jre/bin
$ ls
ControlPanel* PA_RISC2.0/ keytool@ rmiregistry@
HPUXChildWrapper* java@ policytool@ tnameserv@
PA_RISC/ jcpm_server@ rmid@
$ find . -name jre
$ ls PA_RISC2.0
native_threads/
$ ls PA_RISC2.0/native_threads/
java* java_q4p* keytool* rmid* tnameserv*
java_q3p* jcpm_server* policytool* rmiregistry*

Searching other places for jre only leads me to 1.1.8 version

Regards,

Jeroen
R. Allan Hicks
Trusted Contributor

Re: oracle jre use

If memory serves.........

I think you tell the oracle installer where the jre is located shortly after you start it. So, you may be looking at an install issue and need to point Oracle to the newer jre.

I just got 1.4.1.2.04 from

www.hp.com/products1/unix/java/index.html


BTW thanks for the heads up, I'm getting ready to install 9.2.0.4 in a couple of months.
"Only he who attempts the absurd is capable of achieving the impossible
Victor BERRIDGE
Honored Contributor

Re: oracle jre use

Hi Jeroen,
Just to show how I invetigate
E.G.
I look in oracle/product/.. for anything that can load an environment like oraenv else
helmut:/opt/oracle/product/9.2.0.1.0/bin $ file load*
loadjava: commands text
loadpsp: ELF-64 executable object file - PA-RISC 2.0 (LP64)
loadpspO: ELF-64 executable object file - PA-RISC 2.0 (LP64)
helmut:/opt/oracle/product/9.2.0.1.0/bin $ more loadjava
#! /bin/sh
#
# %W% %E%
#

unset JAVA_HOME
JAVA_HOME=/opt/oracle/product/9.2.0.1.0/JRE
export JAVA_HOME

JRECLASSPATH=/opt/oracle/product/9.2.0.1.0/JRE/lib/rt.jar:/opt/oracle/product/9.2.0.1.0/JRE/lib/i18n
.jar:/opt/oracle/product/9.2.0.1.0/jlib/javax-ssl-1_1.jar:/opt/oracle/product/9.2.0.1.0/jlib/jssl-1_
1.jar:$ORACLE_HOME/jdbc/lib/classes111.zip:$ORACLE_HOME/sqlj/lib/translator.zip:$ORACLE_HOME/javavm/
lib/aurora.zip
export JRECLASSPATH

SHLIB_PATH=$ORACLE_HOME/lib32:$JAVA_HOME/lib
export SHLIB_PATH

exec $JAVA_HOME/bin/jre -classpath $JRECLASSPATH oracle.aurora.util.Wrapper $JAVA_HOME/bin/jre -clas
spath $JRECLASSPATH oracle.aurora.server.tools.loadjava.LoadJavaMain "$@"

helmut:/opt/oracle/product/9.2.0.1.0/bin

So nothing in oraenv or so but in loadjava you may have your answer

All the best
Victor
Rentenaar
New Member

Re: oracle jre use

Hi,

Found my answer by now. Installed 1.4.2 java
again, somnething was wrong in this installation. Made a new link in jre/bin directory called jre which point to java executable. Had to change some script
for commandline utilities of oracle.
Had another help from somebody which states
9.2.0.5 comes with new jre environment also. Probably best to upgrade directly to this new version. Also because I found out had to change http/jserv configuration as well.