Run Eclipse in JDK?

Is it possible (and how) to run eclipse in the JDK , and not in the JRE ?
When I open eclipse, I keep getting the following error:

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

(error is generated by m2eclipse plugin)


UPDATE:
Here are some of the relevant settings that I already have:

enter image description here

enter image description here


UPDATE 2
Following the bounce tips, I split -vm and the path between the lines, and now I get the following after starting the eclipse:

enter image description here

My configuration:

  • win 7 64bit
  • eclipse-sdk-3.6.2-win32
  • JDK-6u25-Windows-x64
+3
source share
3 answers

Two things you need to check:

-, Eclipse Windows > > Java > JRE. "JRE", - , JDK (, JRE), - JDK), , JRE JDK

, eclipse.ini( eclipse), , notepad ++ ..) :

-vm 
C:/Java/jdk1.6/bin/javaw.exe

(, javaw.exe JDK)

.ini , , .

+7

. -, , maven , . , . , , C:\WINDOWS\system32 java.exe, javaw.exe javaws.exe. , - (, PATH), JDK eclipse.ini.

+1

Just install the latest JDK from Sun ^ WOracle - Eclipse (and related tools) should automatically pick it up.

Eclipse itself can work with a simple JRE, but maven requires a JDK.

0
source

All Articles