PURPOSE: This phase I clinical trial is studying the side effects of erlotinib when given together with stereotactic radiosurgery and to see how well it works in treating patients with non-small cell lung cancer with brain metastases.