Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Maven Integration with Eclipse

Posted on 2011-09-20
3
Medium Priority
?
542 Views
Last Modified: 2013-12-13
Hello
I'm getting this warning, and while it is a warning, it concerns me whether I have properly configured Eclipse and Maven.
This is the warning;
9/20/11 9:23:12 AM MDT: 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/20/11 9:23:29 AM MDT: Updating index central|http://repo1.maven.org/maven2
 Eclipse warning message Eclipse warning message
0
Comment
Question by:chima
  • 2
3 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 36571483


4 down vote
      
in this link :
http://stackoverflow.com/questions/2921473/m2eclipse-eclipse-is-running-in-a-jre-but-a-jdk-is-required

read this:





The answer is that you have to have a line break between

-vm

and the path.

So in the eclipse.ini file:

THIS WILL NOT WORK:

-vm C:\java\jdk\bin\javaw.exe

BUT THIS WILL:

-vm
C:\java\jdk\bin\javaw.exe

link|improve this answer
      
answered Nov 18 '10 at 17:26
Jeremy Goodell
422110
      
      
Thank you, this did the trick for me! – Jack Murphy Jun 5 at 10:18
0
 
LVL 47

Accepted Solution

by:
for_yan earned 2000 total points
ID: 36571489



This is amnother suiggestion from:
http://www.coderanch.com/t/488574/vc/Eclipse-running-JRE-but-JDK
      
Problem solved thanks to java ranch on anoher thread here is he correct setting in the eclipse.ini file

-vm
C:\JavaJDK\Java\jdk1.6.0_01\jre\bin\client\jvm.dll

Here is the ini file in full;

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.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
-vm
C:\JavaJDK\Java\jdk1.6.0_01\jre\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
0
 

Author Closing Comment

by:chima
ID: 36574152
Thanks, I found that as well.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Rules and regulations were devised in order to maintain the integrity of a system. However, interpretation of rules can be quite tricky.
Have you ever run into that annoying problem where the computer won't boot?  Wouldn't it be great if you had a tool that would make that disk boot again?  I have found one tool that works more often than not ...
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

926 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