Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Maven in Eclipse, changing from JRE to JDK

 
Kari Nordmann
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47313
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sort of question is usually asked in other parts of the Ranch.

Moving.
 
Maneesh Godbole
Saloon Keeper
Posts: 10976
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like Campbell has stepped out for a cuppa.
Moving.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Felipe Requeno
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, problem fixed
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic