launcher issue for eclipse

view story

http://askubuntu.com – I installed 12.04 xubuntu and latest eclipse. java is also installed. path is set correctly. but there are two things strange to me. 1. when I double click the eclipse executable, it says cannot find java; 2. create a launcher on the desktop, it says the same thing as above; open a terminal, type eclipse, it will start eclipse without any error. type java in terminal also shows java is installed and available to the system. I am new to ubuntu. please help. (HowTos)