drupal_add_js() does not add .js file from libraries folder I have a page callback where I want to add a colorbox library by this code:

drupal_add_js('sites/all/libraries/colorbox/jquery.colorbox-min.js', 'file');


The file exists, path is right. But in html is this file not included. Why it does not work?
That seems apply to your issue :


  This problem occurs because the path to library is often incorrectly
  set as

libraries\colorbox\jquery.colorbox-min.js

  
  The solution should be to correct the path. You need to place the
  whole Colorbox plugin directory after unpacking it in
  sites/all/libraries This means the path should look like

sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js



Source