The first dehydration and the competing reaction pathways of glucose homogeneously and heterogeneously catalyzed by acids.