For the three-dimensional full compressible Navier–Stokes system describing the motion of a viscous, compressible, heat-conductive, and Newtonian polytropic fluid, we establish the global existence and uniqueness of classical solutions with smooth initial data which are of small energy but possibly large oscillations where the initial density is allowed to vanish. Moreover, for the initial data, which may be discontinuous and contain vacuum states, we also obtain the global existence of weak solutions. These results generalize previous ones on classical and weak solutions for initial density being strictly away from a vacuum, and are the first for global classical and weak solutions which may have large oscillations and can contain vacuum states.