The calculated distance (air line) between Jamaica and Havana is approximately 17 miles respectively 28 kilometers.
By car or train, the actual journey to Havana is certainly longer, as only the direct route (as the crow flies) between Jamaica and Havana has been calculated here.