Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1057022

Summary: s-ramp.sh requires JAVA_HOME to be set
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: DT GovernanceAssignee: Thomas Heute <theute>
Status: CLOSED UPSTREAM QA Contact: Matej Melko <mmelko>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: soa-p-jira
Target Milestone: DR2   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The s-ramp.sh file will not run unless JAVA_HOME is set. To do this, run the command cat ~/.bash_profile and locate the JAVA_HOME property. Remove the # to enable it. s-ramp.sh will now run as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:34:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Pechanec 2014-01-23 11:00:30 UTC
s-ramp.sh is the only FSW script that requires JAVA_HOME to be set. As RHEL installation be default does not set such a env variable the requirement should be relaxed.

Comment 2 Brett Meyer 2014-06-30 15:04:06 UTC
What do the other scripts attempt?  Is it safe to assume "java" is in the usr bin or aliased?

Comment 3 Jiri Pechanec 2014-07-01 06:49:40 UTC
Both standalone.sh and jboss-cli.sh contains

108 # Setup the JVM
109 if [ "x$JAVA" = "x" ]; then
110     if [ "x$JAVA_HOME" != "x" ]; then
111         JAVA="$JAVA_HOME/bin/java"
112     else
113         JAVA="java"
114     fi
115 fi

So if JAVA_HOME is not set, they try to use java that could be on PATH

Please bear in mind that the same applies also to *.bat versions of the scripts

Comment 4 JBoss JIRA Server 2014-07-02 02:55:23 UTC
Brett Meyer <brmeyer> updated the status of jira SRAMP-486 to Coding In Progress

Comment 5 Brett Meyer 2014-07-02 02:57:25 UTC
Perfect, thanks much.

Comment 6 JBoss JIRA Server 2014-07-02 16:08:27 UTC
Brett Meyer <brmeyer> updated the status of jira SRAMP-486 to Resolved

Comment 7 Brett Meyer 2014-07-02 16:12:28 UTC
Corrected upstream

Comment 8 JBoss JIRA Server 2014-07-29 16:27:46 UTC
Brett Meyer <brmeyer> updated the status of jira SRAMP-486 to Reopened

Comment 9 JBoss JIRA Server 2014-07-29 16:30:49 UTC
Brett Meyer <brmeyer> updated the status of jira SRAMP-486 to Closed

Comment 18 Red Hat Bugzilla 2025-02-10 03:34:55 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.