Bug 58845 - /usr/bin/mozilla script doesn't locate IBM's JRE
Summary: /usr/bin/mozilla script doesn't locate IBM's JRE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mozilla   
(Show other bugs)
Version: 7.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Christopher Blizzard
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2002-01-25 19:23 UTC by Manfred Hollstein
Modified: 2007-04-18 16:39 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-05 08:55:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Manfred Hollstein 2002-01-25 19:23:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226

Description of problem:
The directory structure of the IBM JRE (IBMJava2-JRE-1.3-9.0 on Red
Hat Linux 7.2) is different compared to Sun's jre (jre-1.3.1_01-fcs). 
The start script /usr/bin/mozilla, which is contained in Mozilla's
RPMs for Linux, tries to locate the "java" script based on where the
plugin is stored; while this works OK for the Sun version, it doesn't 
for IBM's because IBM have the plugin as well as the "java" script
stored in the *same* directory. This is compensated by the following
patch (please note that this patch is relative to Mozilla's current
versions, ie. 0.9.5-0.9.7!):

--- ./usr/bin/mozilla.orig      Fri Oct 12 09:01:19 2001
+++ ./usr/bin/mozilla   Thu Nov  8 12:15:32 2001
@@ -81,22 +81,14 @@ function set_jvm_vars() {
     JVM_BASE=`basename $JVM_LINK`
     JVM_DIR=`echo $JVM_LINK | sed -e s/$JVM_BASE//g`
-    JVM_DIR=${JVM_DIR}../../../bin/
-    # make sure it was found
-    if [ -z "$JVM_DIR" ]; then
-        return
-    fi
-    # does it exist?
-    if [ ! -d "$JVM_DIR" ]; then
-        return
-    fi
-    # does the command exist?
-    if [ ! -r "$JVM_COMMAND" ]; then
-       return
+    if [ ! -r $JVM_COMMAND ]; then
+       JVM_DIR=${JVM_DIR}../../../bin/
+       JVM_COMMAND=$JVM_DIR/java
+       # does the command exist?
+       if [ ! -r "$JVM_COMMAND" ]; then
+           return
+       fi
     # export this temporarily - it seems to work with old and new

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Install IBM's JRE
2.Start /usr/bin/mozilla

Actual Results:  No Mozilla window appears :-(

Expected Results:  Mozilla should start normally.

Additional info:

Comment 1 Manfred Hollstein 2002-05-05 08:55:50 UTC
This is integrated into the original sources at mozilla.org. The report can be
closed now.

Comment 2 Christopher Blizzard 2002-05-06 15:22:09 UTC
Ahh, so it is.

Note You need to log in before you can comment on or make changes to this bug.