Joomla cron.php/cli.php fail on Windows server
This issue was raised on StackExchange by another user: https://civicrm.stackexchange.com/questions/24867/compatibility-problem-with-joomla-3-8-7-and-civicrm-5-0-1-that-affects-cron
With CiviCRM running on Joomla on Windows, cron jobs fail.
require(C:\Apache24\htdocs\joomla\administrator\components\com_civicrm\civicrm\administrator\includes\defines.php): failed to open stream: No such file or directory in C:\Apache24\htdocs\joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\System\Joomla.php on line 559
It is caused by this line in
$joomlaPath = explode('/administrator', $civicrm_root);
The forward slash is not matched on Windows systems, which results in an incorrect path to Joomla. The solution is to replace it with DIRECTORY_SEPARATOR.