on 07-04-2019 6:59 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank's for the fast answering. Same problem:
./dispatcherutil.sh gui
./dispatcherutil.sh: line 36: /bin/java: No such file or directory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like you are running from unix os, use correct command as below
./dispatcherutil.sh gui
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.