  We calculate the vacuum energy density by taking account of different massive
scalar fields in AdS spacetime. It is found that the mass spectrum of a scalar
field in AdS spacetime is discrete because of a natural boundary condition. The
results match well with the observed cosmological constant.
