Created On:  18 January 2011

Problem:

When running the 'cobjrun' command, get the following error message:

     Sorry unable to load libcobjvm_java2

     If libcobjvm_java2 is on shared library PATH, then ensure
     'libjava' and 'java' are found on the PATH/Shared Library PATH.

Resolution:

Run the command:   cobsje -v

Compare the values displayed by the 'cobsje -v' command with the values echoed from the environment variables such as COBJVM, JAVA_HOME, LD_LIBRARY_PATH, PATH, CLASSPATH, COBCPY, etc and see if the values are the same or not.

E.g:     echo $COBJVM
to display the contains of what the environment variable is currently set to.

Or run the 'env' command to obtain all the environment variable listings.

If not the same as those shown via the 'cobsje' command, then use the 'export' command to manually change the environment variables to match.

E.g:      export COBJVM=sun_142

Now try running the 'cobjrun' command again.