After I installed the latest Eclipse 3.4 on my home computer and launched it, I saw a warning message complaining about the Eclipse was using the JRE instead of JDK. Even though I followed the notice in the warning message and added an extra line of “-vm …” in the eclipse.ini file, it still didn’t remove the warning message. Eventually, I created a desktop shortcut with the target command as
E:\Tools\eclipse\eclipse.exe -vm E:\Tools\jdk1.6.0_16\jre\bin\javaw
The error message disappeared.
PS: I just found that the better way to solve this issue is to modify the eclipse.ini file by adding the -vm line right above the -vmargs line. Eclipse always has something strange like this one.