Ensuring that bljython works after installing the Application Server

On Microsoft Windows platforms, if you install the Jython utility after you install the Application Server, the BMC Server Automation Jython executable (bljython.exe) does not work.

The Application Server installation on Windows creates the bljython.cfg file. Creation of this file converts the value of the JYTHON_HOME variable to an absolute path. If the Jython utility is not installed and the JYTHON_HOME variable set before the Application Server installation, the bljython.cfg file does not contain the full path to the Jython installation.

When you launch bljython.exe or when you run a Jython script, the utility displays an exception and an error message:

java.lang.NoClassDefFoundError: org/python/util/jython
Caused by: java.lang.ClassNotFoundException: org.python.util.jython
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
[ERROR] Failed to find main class: org/python/util/jython

To resolve this issue, do one of the following:

  • Edit the bljython.cfg file to specify the full path to the jython.jar file. The bljython.cfg file location is <installDirectory>\br\bljython.cfg, where <installDirectory> is the Jython installation directory.
Was this page helpful? Yes No Submitting... Thank you