Solved

Eclipse Maven

Posted on 2010-09-03
19
441 Views
Last Modified: 2012-05-10
hello there,

i am using eclipse Galileo and installed maven recently. but i get this message in the eclipse console when i start eclipse.what is it and how do i get rid of it.

9/4/10 9:13:22 AM IRDT: Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.
9/4/10 9:13:24 AM IRDT: Updating index central|http://repo1.maven.org/maven2
9/4/10 9:13:27 AM IRDT: Downloading d9d714e11cb097b3ffcec91cccc65d3e : nexus-maven-repository-index.properties
9/4/10 9:13:27 AM IRDT: Downloaded Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties
9/4/10 9:13:28 AM IRDT: Updated index for central|http://repo1.maven.org/maven2
0
Comment
Question by:zolf
  • 10
  • 9
19 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602004
Maybe the first line is a clue, JDK required   >> Eclipse is running in a JRE, but a JDK is required

JDK available here http://www.oracle.com/technetwork/java/javase/downloads/index.html

then try and see what issues you get
0
 

Author Comment

by:zolf
ID: 33602007

i have jdk on my machine. i am also using it to develop my java application.
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 33602010
Alternative JDK download link https://jdk6.dev.java.net/ 

Once you have done that, you may need to set it by going into windows/preferences/java/installedjre. In fact just look here for other things you may need to do http://tech.karolzielinski.com/m2eclipse-eclipse-is-running-in-a-jre-but-a-jdk-is-required
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 65

Expert Comment

by:rockiroads
ID: 33602019
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602021
oops., sorry wrong thread lol
0
 

Author Comment

by:zolf
ID: 33602023

thanks for your comments. i have jre,but when i try to add jdk.i just get to see jre which i already have.am i missing something.please help
9-4-2010-9-41-22-AM.gif
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602029
just checking my config, one sec
0
 

Author Comment

by:zolf
ID: 33602031

ok,i put the jdk.now do i remove that jre6??
9-4-2010-9-45-07-AM.gif
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602034
Mine is like that. I do not have Maven and never seen this error in Eclipse before. Let me check a little.
0
 
LVL 65

Assisted Solution

by:rockiroads
rockiroads earned 500 total points
ID: 33602039
can u try the eclipse.ini settings here http://www.coderanch.com/t/488574/vc/Eclipse-running-JRE-but-JDK (towards the end) in particular the order
0
 

Author Comment

by:zolf
ID: 33602046

do i select the jdk or the jre.you see i have maven plugin installed in eclipse.after this i started getting this message. that link you provided is helpful.but i am not sure about jdl/jre
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602050
forget the jre in settings. just try the eclipse.ini
what is your line to jvm.dll?

eg look for something like this. if u find it verify the path
-vm
C:\JavaJDK\Java\jdk1.6.0_01\jre\bin\client\jvm.dll
0
 

Author Closing Comment

by:zolf
ID: 33602051
cheers
0
 

Author Comment

by:zolf
ID: 33602056

my eclipse.ini is like this

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
0
 

Author Comment

by:zolf
ID: 33602062

i dont see the -vm
0
 

Author Comment

by:zolf
ID: 33602066

got it.
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602067
so u got it going then?
did u try adding the -vm line with the right path to the jvm.dll?
0
 

Author Comment

by:zolf
ID: 33602091

yes,got it working as you mentioned. cheers mate
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 33602117
cool. glad your all sorted.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 74
Java: The Public Class Main 4 45
Where are the c++ header files to use in Eclipse? 4 53
Java 8 to Java 6 8 33
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question