Troubleshooting SNMP Adapter Configuration Manager installation issues

After installing SNMP Adapter Configuration Manager, when you start the tomcat server on Linux and Solaris platforms, following errors are displayed:

JAVA_HOME command not found

JAVA_HOME: command not found
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

Workaround:

Do the following:

  1. Navigate to the  <SNMP Config Manager Install Directory>/SNMPAdapter/jakarta-tomcat-5.0.25/bin directory, and open the catalina.sh file.
  2. Find the following code line:

    JAVA_HOME=/usr/java/jdk1.7.0_80export JAVA_HOME

  3. Split the code line into two lines so that the export JAVA_HOME command is on the next line as shown below:
    JAVA_HOME=/usr/java/jdk1.7.0_80
    export JAVA_HOME
  4. Save and close the catalina.sh file.

touch: cannot touch `/opt/SNMPAdapter/jakarta-tomcat-5.0.25/logs/catalina.out': No such file or directory

touch: cannot touch `/opt/SNMPAdapter/jakarta-tomcat-5.0.25/logs/catalina.out': No such file or directory

Workaround:

Do the following:

  1. Navigate to the <SNMP Config Manager Install Directory>/SNMPAdapter/jakarta-tomcat-5.0.25 directory.
  2. Create a directory named logs.


Once you resolve the errors as explained in the preceding sections, restart the tomcat server.

Where to go from here

Was this page helpful? Yes No Submitting... Thank you

Comments