Make sure your JAVA_HOME is pointing to a JDK installation instead of a JRE.
On Mon, Dec 21, 2009 at 3:15 PM, veena pandit v.kri...@gmail.com wrote:
I get the following error message while trying to do a maven build in eclipse:
[ERROR] Failed to execute goal
If you're on Windows, what do you see when you do dir $JAVA_HOME/../lib
Here's the pom that specifies that profile be activated when using Sun's JDK.
If I do the command exactly like you show I get an error, Invalid switch..
How do you want me to enter the command exactly? I changed the java version
from 1.4.2 to 1.6.0_11 in the aspectj-maven-plugin-1.2.pom.
Thanks,
Sonia
On Mon, Dec 21, 2009 at 5:40 PM, Matt Raible m...@raibledesigns.com
To be honest, I'm not sure what could be causing this problem
(especially if you're pointing to a JDK and not a JRE). No one has
reported this issue before (that I can recall).
On Mon, Dec 21, 2009 at 3:51 PM, veena pandit v.kri...@gmail.com wrote:
If I do the command exactly like you show I get
What about in eclipse? It has a JRE in its build path.
What do I need to do? I googled the problem and they
said they reinstalled Java and set Java home and the
problem went away. I installed Java 1.6.0_17 and set the
java home to Java 1.6.0_17 directory.
It did not clear the problem.
THanks,
In Eclipse, are you pointing to a JDK or a JRE. According to the
errors you're seeing, it's a JRE.
On Mon, Dec 21, 2009 at 4:48 PM, veena pandit v.kri...@gmail.com wrote:
What about in eclipse? It has a JRE in its build path.
What do I need to do? I googled the problem and they
said they
Hi,
I think it is a JRE, Not sure how to change it to point to a JDK.
Not even sure how to check it.
Thanks,
Sonia
On Mon, Dec 21, 2009 at 6:50 PM, Matt Raible m...@raibledesigns.com wrote:
In Eclipse, are you pointing to a JDK or a JRE. According to the
errors you're seeing, it's a JRE.