Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

jre not found by db2

Jimmy_13
Advisor

jre not found by db2

I have hp-ux 11i and db2 v7.2. Whe i try to run the control center with the command db2cc,
the error said : jre: not found.
I have java 1.3.

How i can work with control center?

Thanks
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: jre not found by db2

There is proably an environment variable that needs to be set for the user that owns the db2 installation.

The environment variable will likely contain the path to java.

This is probably specified in the install guide for db2.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Poff
Honored Contributor

Re: jre not found by db2

Hi,

Do you have the Java bin directory in your $PATH? Probably you'll need to add /opt/java1.3/bin to your PATH [or to the PATH of the user running your control center].

JP
Jeff Schussele
Honored Contributor

Re: jre not found by db2

Hi Jimmy,

Generally one has a Java variable like
JAVA_HOME=/opt/java
or
JAVA2_HOME=/opt/java2
or
JAVA3_HOME=/opt/java3

Suspect your user does not have this var set.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jimmy_13
Advisor

Re: jre not found by db2

PATH has /opt/java1.2 and /opt/java1.2/bin but the error is the same
Jeff Schussele
Honored Contributor

Re: jre not found by db2

Where is your Java 1.3 installed?
Default for that ver is /opt/java1.3

Verify just where it's installed & set you PATH thru that. Also check w/your db2 team & ask whether your need a JAVA_HOME var set for the executing user.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!