Check for the following:
If the value for SM_JAVA_ENABLED parameter is set to YES in the runcmd_env.sh file. The The runcmd_env.sh file is located in the <BASEDIR>/smarts/local/conf directory.
All libraries and jars are present in the lib and classes folder, respectively.
SM_LIB_PATH contains the entry for the <BASEDIR>/smarts/lib and <BASEDIR>/smarts/local/lib.