cancel
Showing results for 
Search instead for 
Did you mean: 

dispatcherutil.sh list is not working

mariolamm
Participant
0 Kudos

Hello


I'm new in SAP Basis. I want to check the status from the Dispatcher on our system.

If i executed the dispatcherutil.sh i'll get this error:

dispatcherutil.sh: line 36: /bin/java: No such file or directory


USAGE: sh dispatcherutil.sh <command> <dispatcherName> <option>
Output without any commands:
command One of: test/add/delete/start/suspend/resume/stop/softstop/list/gui/set_jdbc_url/set_default
dispatcherName Not required for commands "list", "gui" and "set_jdbc_url", but is mandatory for others
option One of checkconfig/runonce in combination with command "test"
JDBC URL with <prefix>_rt user in combination with command "set_jdbc_url"

What is the reason and what can i do?

Thank's for helping.

Accepted Solutions (0)

Answers (3)

Answers (3)

lambert-giese
Active Participant

You seem to be starting the script from an environment where JAVA_HOME is not set. Hence, the java executable cannot be started by the script.

One way to solve the problem is to set JAVA_HOME manually each time before you're invoking dispatcherutil.sh. To do that, use the following sequence of commands from a terminal:

export JAVA_HOME=/some/directory
export PATH=$JAVA_HOME/bin:$PATH
./dispatcherutil.sh gui

Replace /some/directory with the Java installation directory, which is specific to your installation/deployment. An example value from my environment is /opt/sapjvm_8

The proper solution is to set JAVA_HOME from a login script such as $HOME/.profile of the Unix user that you're using to perform these commands. With that approach, JAVA_HOME will be set automatically for each login session.

mariolamm
Participant
0 Kudos

Thank's now is working. We found out that the profile was not loading correctly. We will check internal.

Thank you for helping.

mariolamm
Participant
0 Kudos

Thank's for the fast answering. Same problem:

./dispatcherutil.sh gui
./dispatcherutil.sh: line 36: /bin/java: No such file or directory

former_member256680
Participant
0 Kudos

Looks like you are running from unix os, use correct command as below

./dispatcherutil.sh gui