Search This Blog

Loading...

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

I installed m2eclipse on a new Windows Vista Laptop, and now everytime I open eclipse, the console will show:

11/27/08 12:07:25 PM PST: Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.

The fix for this is to add the following lines

-vm
C:\Java\jdk1.5.0_16\bin\javaw.exe

to the C:\Java\Apps\eclipse\eclipse.ini file in the eclipse app dir.

7 Comments:

Eugene Kuleshov said...

This is of course documented. See

http://docs.codehaus.org/display/M2ECLIPSE/Installation+Requirements
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-UnabletolocatetheJavacCompilerError

George Dawoud said...

Yep that is where I got the answer.

Thana said...

its more simple to create a bat file that starts the eclipse.

example eclipsStart.bat:
eclipse.exe -vm "C:\Program Files\Java\jdk1.6.0_17\bin\javaw.exe"

remember the "" due to white space on Program Files

George Dawoud said...

Correct but you should know about the eclipse.ini file as you can also alter memory sizing. and if the sytem is used by more than one user then the change effects everyone... but yes your way also work, can you also change the windows shortcut.

Anadi Kumar said...

Solved: m2eclipse: Eclipse is running in a JRE, but a JDK is required

G:\study\eclipse-jee-galileo-SR2-win32\eclipse\eclipse.exe -vm "E:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe"

This works fine. :)

Regards,
Anadi KUMAR
Architecture and R2ds, Channels and Framework, Software Engineer | HSBC Technology and Services - Global Technology
HSBC Software Development (India)Limited
GLT 4.0 - Panchshil Tech. Park, Block D, S.No. 19, Hissa 2A/11/2, Yerawada, Pune, 411006.
India.

Mobile. +91 9822622054
Email. anadikumar@hsbc.co.in
Email. anadikumar@gmail.com

Leonardo Méndez said...
This comment has been removed by the author.
Leonardo Méndez said...

Here are a possible SIMPLE solution for this (without edit the configs eclipse files): http://cimientosprevios.com/?p=19