Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Troubleshooting Guide

- Previous: hadbm Command Fails: The agents could not be reached
- Next: hadbm Command Fails: JAVA_HOME not defined

## `hadbm` Command Fails: `command not found`

### Description

The `hadbm` command can be run from the current directory, or you can set the search `PATH` to access the `hadb` commands from anywhere, which is much more convenient. The error, “`hadbm: Command not found`,” indicates that neither of these conditions has been met.

### Solution 1

`cd` to the directory that contains the `hadbm` command and run it from there:

    cd install_dir/SUNWhadb/4/bin/
    ./hadbm

### Solution 2

Use the full path to invoke the `hadbm` command:

    install_dir/SUNWhadb/4/bin/hadbm

### Solution 3

You can use the `hadbm` command from anywhere by setting the `PATH` variable. Instructions for setting the `PATH` variable are contained in the “Preparing for HADB Setup” chapter of the Sun Java System Application Server 8.1 Installation Guide.

To verify that the `PATH` settings are correct, run the following commands:

    which asadmin
    which hadbm

These commands should echo the paths to the utilities.

- Previous: hadbm Command Fails: The agents could not be reached
- Next: hadbm Command Fails: JAVA_HOME not defined

- © 2010, Oracle Corporation and/or its affiliates