social-p2p
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Social-p2p] Getting up and running with Java


From: Miron Cuperman
Subject: Re: [Social-p2p] Getting up and running with Java
Date: Wed, 14 Jul 2010 10:06:02 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

Hi all,

On 07/14/2010 09:56 AM, Ted Smith wrote:
> 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?
>   

I'm not a maven maven myself, and I am currently assuming that the
developer copies all jar dependencies into lib.  I'll research how to do
that automatically.  In the mean time, lib should contain:

commons-beanutils-1.7.0.jar
commons-beanutils-core-1.8.0.jar
commons-cli-1.2.jar
commons-codec-1.2.jar
commons-collections-3.2.1.jar
commons-configuration-1.6.jar
commons-digester-1.8.jar
commons-httpclient-3.1.jar
commons-io-1.4.jar
commons-lang-2.4.jar
commons-logging-1.1.1.jar
commons-logging-api-1.0.4.jar
commons-validator-1.2.0.jar
mongo-java-driver-1.4.jar
simple-4.1.20.jar

and you'll have to copy these manually from ~/.m2/repository .  Sorry
for the hassle.

-- 
Miron Cuperman

http://hyper.to/blog/link/category/the-new-web/reputations/

http://groups.fsf.org/wiki/User:Miron2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]