Solved

Maven Integration with Eclipse

Posted on 2011-09-20
3
459 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
Comment Utility


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 500 total points
Comment Utility



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
Comment Utility
Thanks, I found that as well.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now