Error: /bin/sh^M: bad interpreter: No such file or directory
The following error displays upon running the startJavaHelp script:
"./startJavaHelp: <install path>/arcgis/java/docs/startJavaHelp: /bin/sh^M: bad interpreter: No such file or directory".
The UNIX shell script 'startJavaHelp' is in a DOS format, and the file contains ^M line returns.
Solution or Workaround
Run the 'dos2unix' utility on the script file to remove the ^M line returns and format the file for UNIX.
cd to <install path>/arcgis/java/docs/startJavaHelp
Determine the owner <username:group> who installed the ArcGIS Engine Developer Kit and make a note of it: ls -l
Log in as root: su
Run the 'dos2unix' utility: dos2unix startJavaHelp startJavaHelp
Change the owner of the 'startJavaHelp' script from 'root' back to the user who installed the ArcGIS Engine Developer Kit (as determined in step 2). For example, if the <username:group> is <test:users>, then execute: chown test:users startJavaHelp
Change the file permissions to 555: chmod 555 startJavaHelp