Skip to main content
Post Closed as "Not suitable for this site" by Niels van Reijmersdal, Bharat Mane, Michael Durrant, Chris Kenst, Narendra Chandratre
modified question
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

Not able to install maven inon windows

WhileGetting error while trying to install to maven inon windows am getting this error .

What iI have tried is  , I have set the Environment variables as follows  :

System variable  ::

MAVEN_HOME :: C:\Users\hari\Downloads\apache-maven-3.3.9 User Variable ::

PATH : C:\Users\HARI\Downloads\apache-maven-3.3.9\bin; JAVA_HOME : C:\Program Files\Java\jdk1.8.0_101\jre ERROR in cmd ::

C:\Users\hari>mvn -version

MAVEN_HOME :: C:\Users\hari\Downloads\apache-maven-3.3.9
User Variable::

PATH : C:\Users\HARI\Downloads\apache-maven-3.3.9\bin;
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_101\jre
ERROR in cmd::

C:\Users\hari>mvn -version

Exception in thread "main" java.lang.NoClassDefFoundErrorError: org/codehaus/plexus/l ogging/LoggerManager

        Exception in thread "main" java.lang.NoClassDefFoundError: 
        org/codehaus/plexus/logging/LoggerManager

        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.logging.LoggerManager

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)


    ... 10 more

what i should I do to configure it rightly  ?

Not able install maven in windows

While trying to install to maven in windows am getting this error .

What i have tried is  , I have set the Environment variables as follows  :

System variable  ::

MAVEN_HOME :: C:\Users\hari\Downloads\apache-maven-3.3.9 User Variable ::

PATH : C:\Users\HARI\Downloads\apache-maven-3.3.9\bin; JAVA_HOME : C:\Program Files\Java\jdk1.8.0_101\jre ERROR in cmd ::

C:\Users\hari>mvn -version

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/l ogging/LoggerManager

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.logging.LoggerManager

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)


    ... 10 more

what i should do to configure it rightly  ?

Not able to install maven on windows

Getting error while trying to install maven on windows.

What I have tried is, I have set the Environment variables as follows:

System variable::

MAVEN_HOME :: C:\Users\hari\Downloads\apache-maven-3.3.9
User Variable::

PATH : C:\Users\HARI\Downloads\apache-maven-3.3.9\bin;
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_101\jre
ERROR in cmd::

C:\Users\hari>mvn -version

Error:

        Exception in thread "main" java.lang.NoClassDefFoundError: 
        org/codehaus/plexus/logging/LoggerManager

        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.logging.LoggerManager

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)


    ... 10 more

what should I do to configure it rightly?

Source Link
Hari
  • 1
  • 1
  • 1

Not able install maven in windows

While trying to install to maven in windows am getting this error .

What i have tried is , I have set the Environment variables as follows :

System variable ::

MAVEN_HOME :: C:\Users\hari\Downloads\apache-maven-3.3.9 User Variable ::

PATH : C:\Users\HARI\Downloads\apache-maven-3.3.9\bin; JAVA_HOME : C:\Program Files\Java\jdk1.8.0_101\jre ERROR in cmd ::

C:\Users\hari>mvn -version

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/l ogging/LoggerManager

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.logging.LoggerManager

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)


    ... 10 more

what i should do to configure it rightly ?