Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have recently updated my java version to jdk7u9 in my ubuntu 11.04 Natty after which my previous maven projects have stopped working. I have installed using this script

When I run maven install in my projects (which previously used to work fine) I get this error

 org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: com.company.build:maven-jsmodule-plugin. Reason: A required class was missing during mojo configuration: com/sun/tools/javac/util/Pair
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)

 Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.util.Pair
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

I have tried googling the issue but all i get is setting the JAVA_HOME variable which is correct. Can anybody please help?

My maven version 2.2.1

share|improve this question
    
You're running an unsupported configuration. I'd suggest getting rid of Horracle JDK, installing the latest openjdk-7-jdk package, and using that instead. –  mirabilos Mar 1 at 23:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.