Setting RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH or JAVA_HOME in JON rhqctl script is ignored

Solution Unverified - Updated -

Issue

  • I got following error:

    # ./rhqctl install
    INFO  [org.jboss.modules] JBoss Modules version 1.2.2.Final-redhat-1
    INFO  [org.rhq.server.control.command.Install] Preparing to install RHQ storage node.
    There is no JVM available.
    Please set RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH appropriately.
    ERROR [org.rhq.server.control.command.Install] An error occurred while running the storage installer: Process exited with an error: 1 (Exit value: 1)
    ERROR [org.rhq.server.control.RHQControl] Process exited with an error: 1 (Exit value: 1)
    WARN  [org.rhq.server.control.command.Install] UNDO: Removing storage node data and install directories
    WARN  [org.rhq.server.control.command.Install] UNDO: Reverting server properties file
    
  • Set the 'RHQ_JAVA_HOME' in the rhqctl.sh as follow:

    RHQ_JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
    

Environment

  • Red Hat JBoss Operations Network (ON) 3.2.0
  • Modified rhqctl script to define an environment variable RHQ_JAVA_HOME, RHQ_JAVA_EXE_FILE_PATH or JAVA_HOME
  • Executing rhqctl to install or start a JBoss ON component

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.