my dog learned polymorphism*
The moose likes Ant, Maven and Other Build Tools and the fly likes Regarding Maven Integration with Eclipese Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Regarding Maven Integration with Eclipese" Watch "Regarding Maven Integration with Eclipese" New topic
Author

Regarding Maven Integration with Eclipese

Jay Shukla
Ranch Hand

Joined: Jun 08, 2008
Posts: 214
Hi All,

I have installed Maven plugin in Eclipse Galilieo and it got installed successfully.
But when i try to open Eclipse Workspace I am getting meesage stating JDK pointing in pop window.

I have attahced screenshot.

Could anyone please help how to do the JDK pointing?

Thanks in Advance.


[Maven_Integration.jpg]

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

What is in your eclipse.ini? Does it point to a JDK?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jay Shukla
Ranch Hand

Joined: Jun 08, 2008
Posts: 214
Hi Jeanne,

Thanks for your reply.

Below is the content (in bold) of eclipse.ini.

-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
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m


Could you let me know how to make it point to JDK?

Thanks in Advance.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Add the following two lines:

-vm
/home/mycomputer/path/to/jdk/bin
Jay Shukla
Ranch Hand

Joined: Jun 08, 2008
Posts: 214
Hi Jeanne,

I have done the changes suggested by you.
But it still shows the same message.

Could you please help me?

Below is the conbtent of the eclipse.ini.

-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
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-vm
C:/Program Files (x86)/Java/jdk1.5.0_22/bin
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Move the last two lines to just before the -vmargs line.


JBoss In Action
Jay Shukla
Ranch Hand

Joined: Jun 08, 2008
Posts: 214
Thanks Peter for reply !!!

It worked fine.
 
Consider Paul's rocket mass heater.
 
subject: Regarding Maven Integration with Eclipese
 
Similar Threads
Problem with Maven in Eclipse, changing from JRE to JDK
jdk and jre
maven javac compiler error
Ubuntu + Java 7
Doubt regarding Embedded mavne runtime in Eclipse 3.4