Eclipse don't find installed JRE on Mac OS X
Click on project--> Build Path-->Configure Build Path...-->Libraries tab-->Click on Add Library button. Select JRE System library than select JRE if not found than you can specify your own JRE.I think this might help.
I saw this post solution!
It helped me solve my problem I had on my mac after a fresh install of leopard. Seems like these variables have to be set manually or so.