[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Social-p2p] Getting up and running with Java: (i) json gem needed
From: |
Ted Smith |
Subject: |
Re: [Social-p2p] Getting up and running with Java: (i) json gem needed (ii) org.apache.commons.cli.CommandLineParser missing |
Date: |
Wed, 14 Jul 2010 12:56:26 -0400 |
On Wed, 2010-07-14 at 17:53 +0200, Dan Brickley wrote:
> On Wed, Jul 14, 2010 at 5:28 PM, Ted Smith <address@hidden> wrote:
> > On Wed, 2010-07-14 at 16:34 +0200, Dan Brickley wrote:
> >> Suggestions for improving the install notes
>
> >> <danbri> and i get an error,
> >> <danbri> Starting core 0
> >> <danbri> Exception in thread "main" java.lang.NoClassDefFoundError:
> >> org/apache/commons/cli/CommandLineParser
> >> <danbri> Caused by: java.lang.ClassNotFoundException:
> >> org.apache.commons.cli.CommandLineParser
> >> <danbri> maybe Maven failed on that one...
> >> <danbri> grepping my maven package install log, grep -i command
> >> maven.txt -> finds nothing
> >> <danbri> (just from the package lists that scrolled past in stdout)
> >>
> >> I'm not a Maven maven, but assume this last hiccup is probably
> >> something trivial. Something missing from the maven config?
> >
> > It didn't find anything because CommandLineParser isn't a package - it's
> > just a class in apache-commons-cli, which should be pulled in by Maven.
> > Do you have it?
>
> I see
>
> Downloading:
> http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.pom
>
> And find ~/.m2/repository/commons-cli/
> /Users/danbri/.m2/repository/commons-cli/
> /Users/danbri/.m2/repository/commons-cli//commons-cli
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.0
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.0/commons-cli-1.0.pom
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.0/commons-cli-1.0.pom.sha1
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.2
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.2/commons-cli-1.2.jar
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.2/commons-cli-1.2.jar.sha1
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.2/commons-cli-1.2.pom
> /Users/danbri/.m2/repository/commons-cli//commons-cli/1.2/commons-cli-1.2.pom.sha1
>
> ...and no obvious errors. My install earlier was from a downloaded
> tarball; I'll try again with Git now.
>
> Ok using git://gitorious.org/social-p2p/core.git I get same errors as
> above trying 'cd test/system' and 'spec .'; also with bin/core.sh ...
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/CommandLineParser
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.cli.CommandLineParser
> 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:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>
> Any pointers for diagnosing further?
>
> Dan
Hm - I attempted to build and run the core from trunk, and it didn't
work for me either. Maybe this is an unstated dependency?
signature.asc
Description: This is a digitally signed message part