The maven plugin for eclipse doesn't work if eclipse is using the jre. I just spent several hours spinning my wheels trying to get that to work; my Windows shortcut for eclipse had the -vm argument specifying the path to the jdk executable, which got rid of the complaint from maven when I started eclipse. But then when I did the right click, Run As -> Maven Test, it blew up, complaining that it couldn't find the compiler in tools.jar (giving the jre path to it). So then I added the -vm stuff to my eclipse.ini file, but still no cigar.

It finally occurred to me that in my eclipse preferences there's a setting for the vm, and lo and behold, that was set to the jre, so fixing that fixed the problem.

But my real irritation is that Sun's java installation is installing both the jdk and the jre on my Windows machine. I'm thinking that if I weren't installing the jre and only the jdk that eclipse would use the jdk (and maven would be happy).

But my memory is that whenever I install the latest java that it wants to install the jre and the jdk. So my real question is, can I install just the jdk on my pc and will "everything work"?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to