i got this problem -
“Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.”
I put the java home as C:\Program Files\Java\jdk1.5.0_05
and path – C:\Program Files\Java\jdk1.5.0_05\bin
but i got this problem. let me say how i solve it -
open eclipse.ini from eclipse folder. put this line
-vm
C:\Program Files\Java\jdk1.5.0_05\bin\javaw.exe
so the total file looks-
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vm
C:\Program Files\Java\jdk1.5.0_05\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
2nd way solution -
create a bat file under the eclipse folder and put this line
eclipse.exe -vm “C:\Program Files\Java\jdk1.5.0_05\bin\javaw.exe”
save this file. use this file for opening eclipse.
Posted by rajibinfo 