geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Frahm (JIRA)" <>
Subject [jira] Created: (GERONIMO-4942) Incorrect error message in
Date Fri, 30 Oct 2009 14:36:59 GMT
Incorrect error message in

                 Key: GERONIMO-4942
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: startup/shutdown
    Affects Versions: 2.2
         Environment: Unix/Linux
            Reporter: David Frahm
            Priority: Minor

When script cannot find JRE it outputs the following message:
ERROR:  Could not find a Java runtime.
 - Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
 - A Java implementation could not be found on the system PATH
At least one of these is required for this program to execute.

I believe this message is misleading.  The second line implies that the system PATH is also
searched, however the script does not do that.  Only the JAVA_HOME and JRE_HOME are checked.

Assuming my assessment above is correct, a quick fix would be to simply remove the second
line referencing "PATH".

A possibly better fix would be to update the script to search the PATH.  I suggest 'better'
because after setting Java on the PATH for WASCE installer, its kinda kludgy to have to set
something else for the service installer.  End users likely see both installs as being the
same product, and would appreciate some unity here.

You could even add it to the installer!

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message