aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Problem with Maven in Eclipse, changing from JRE to JDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem with Maven in Eclipse, changing from JRE to JDK" Watch "Problem with Maven in Eclipse, changing from JRE to JDK" New topic
Author

Problem with Maven in Eclipse, changing from JRE to JDK

Kari Nordmann
Ranch Hand

Joined: Feb 12, 2007
Posts: 38
I'm trying to get Maven to work with my Eclipse. I have installed it, but every time I run Eclipse I get this message:
03.02.09 11:22:27 CET: 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 have installed JDK, but I can't figure out how to make Eclipse run in JDK instead of JRE. I tried the Maven installation guide, I tried searching in Eclipse Help, but I havent found out.

Can anyone help me?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
That sort of question is usually asked in other parts of the Ranch.

Moving.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Looks like Campbell has stepped out for a cuppa.
Moving.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

To get Eclipse to use a JDK, edit the eclipse.ini file adding these two lines (I put mine at the front of the file)

-vm
C:\apps\Java\jdk1.6.0_07\bin\javaw.exe

JBoss In Action
Felipe Requeno
Greenhorn

Joined: Jan 30, 2009
Posts: 3
You can also use the -vm parameter when calling the eclipse executable.
Something like this: eclipse.exe -vm=%JAVA_HOME%\bin\javaw.exe (if you're using windows)

Greetings...

Felipe.
Kari Nordmann
Ranch Hand

Joined: Feb 12, 2007
Posts: 38
Thanks, problem fixed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Maven in Eclipse, changing from JRE to JDK