Eclipse is running in a JRE, but a JDK is required

Modify "eclipse.ini"

 

Orginal:

-------------

-startup

plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810

-product

org.eclipse.epp.package.java.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash 

org.eclipse.platform 

--launcher.XXMaxPermSize 

256m 

-vmargs 

-Dosgi.requiredJavaVersion=1.5 

-vm 

C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe 

-Xms40m 

-Xmx512m 

-------------

 

 

Updated:

-------------

 

-startup

plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810

-product

org.eclipse.epp.package.java.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash 

org.eclipse.platform 

--launcher.XXMaxPermSize 

256m 

-vm 

C:/Program Files/Java/jdk1.6.0_22/bin/javaw.exe 

-vmargs 

-Dosgi.requiredJavaVersion=1.5 

-------------

 

 

 

 

OK !

你可能感兴趣的:(java,eclipse,jdk,C++,c)