PURPOSE: This phase I/II trial is studying the side effects and best dose of two different schedules of pemetrexed disodium and erlotinib and to see how well they work in treating patients with advanced non-small cell lung cancer or other solid tumors.