Howdy - running Wowza on a cloud based Ubuntu instance. We take the server down when we don't need it, but Wowza won't start when we bring the instance back up. To start it, i can ssh in, switch to root and enter
ERROR: The Java command (java) could not be found.
Search path: /sbin:/usr/sbin:/bin:/usr/bin
In most cases this problem can be fixed by adding a symbolic
link to the Java command in the /usr/bin directory.
To do this first execute the command "which java" to identify
the full path to the Java executable. Next, create a symbolic
link to this file with the command
"ln -sf [path-to-java] /usr/bin/java" where [path-to-java] is
the path returned by the "which" command.
I have java downloaded and unpacked in
and i altered my /etc/enviroment file to look like this:
Generally the way to keep it as simple (and sometimes as thin) as possible is to just use the built in package manager. Pretty much all major distros these days have very robust package management tools and it makes for an easier to manage and easily supportable environment. Personally I would look at installing the java open jdk (openjdk-7-jdk) and possibly java-common if that's not incorporated with the jdk install.
# cd /usr/bin
# ls -l java
java -> /usr/jre/jdk1.8.0_05/bin
In this case it is showing java is found (as a symlink) in /usr/bin/ which conflicts with your first post which shows that java can not be found in your search path of "sbin:/usr/sbin:/bin:/usr/bin". Has anything changed?