Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7048015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:50:27+00:00 2026-05-28T02:50:27+00:00

[UPDATE] Was just an idiot mistake. See end for solution. I am trying to

  • 0

[UPDATE] Was just an idiot mistake. See end for solution.

I am trying to install Maven on my 2011 Macbook Pro. Unfortunately I don’t know Java at all, but I am trying to muddle my way through some tools built in Java, and they imply that using Maven to install them will make things easier.

I followed the Maven install instructions here: http://maven.apache.org/download.html#Installation.

I…

1) downloaded Maven,
2) unzipped it,
3) put it in /usr/local/apache-maven-3.0.3/
4) added

export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.3`
export M2=$M2_HOME/bin`
export PATH=$M2:$PATH`

to my .zshrc file

5) typed mvn --version and got back:

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I found a couple of blog posts (http://steveswinsburg.wordpress.com/2011/03/09/java-update-broke-my-maven/) that described how to fix a similar sounding error, but those seem to be problems with upgrading Maven 2 to Maven 3. Afaik, I’ve never even had Maven 2. I nevertheless followed the directions in that post, and am still getting the exact same error.

Please help!

Also does anyone know a good resource for a beginner to learn how the “Java ecosystem”, i.e. Maven, classpaths, etc works? I tried some “Learn Java” videos at udemy.com, but they were all about the syntax of programming in Java, whereas most of the problems I’ve been having have been around figuring out how to make existing Java apps run in the first place, or how to follow basic jargon-filled documentation.

[SOLUTION]

Summary…idiot mistake.

While following the Maven installation directions, I cut-n-pasted the line “In a command terminal, add the M2_HOME environment variable, e.g. export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.3”, not realizing that I had actually installed my unzipped file in /usr/local/apache-maven-3.0.3.

Once again, scumbag brain “saves time” by refusing to automatically read apparently redundant information, so I didn’t notice that apache’s example expected I had nested the install inside a second folder.

Fixing the .zshrc line to read `export M2_HOME=/usr/local/apache-maven-3.0.3′ fixed the problem.

Thanks ivantod for pointing out my error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:50:27+00:00Added an answer on May 28, 2026 at 2:50 am

    Mac OS X Lion ships with maven already installed on it @ /usr/share/maven.

    You only have to type java on terminal to install java and export JAVA_HOME in ~/.profile to /System/Library/Frameworks/JavaVM.framework/Home. Optionally you can set other parameters like MAVEN_OPTS and JAVA_OPTS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: Solved, i'm an idiot, thank you everyone! Okay little bit weird.. I just
UPDATE: So pretty much everyone here has told me that I just need to
I was just reading an update from a friend's project, mentioning the use of
I just installed Eclipse Galileo for Java developers and noticed that the update site
Update: Last night, I decided that this is just too much work to change
I've just used it for the first time - consider: IGameObject void Update() IDrawableGameObject
How can I update this regular expression to find and replace not just /news/
Update: Based on a couple of the answers I have received, I just want
How can I update an entity effectively in hibernate just as by using SQL.
UPDATE: SOLVED Hi all, i've got it, just save cookie to temp file, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.