commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mornak <dmorna...@gmail.com>
Subject Re: Configuration-exception newing up XMLConfiguration empty constructor
Date Tue, 02 May 2006 19:35:08 GMT
do you have the commons collection jar in your classpath?
if you do, what version are you using?


On 5/2/06, Randall S Horwitz <rhorwitz@us.ibm.com> wrote:
> Greetings,
>
> I recently downloaded Commons Configuration 1.2. I then tried to write a
> simple class in which I simply wanted to new up an XMLConfiguration
> object. Here is part of the code. My little test program compiles, but
> will not run:
>
> import org.apache.commons.configuration.XMLConfiguration;
> <snip>
> System.out.println ("newing up config class") ;
> XMLConfiguration config = new XMLConfiguration() ;
> System.out.println ("Commons class newed up") ;
>
> I see the first pprint out, but not the second, and I get the following
> exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org.apache.commons.collections.Predicate
>         at java.lang.J9VMInternals.verifyImpl(Native Method)
>         at java.lang.J9VMInternals.verify(J9VMInternals.java:55)
>         at java.lang.J9VMInternals.verify(J9VMInternals.java:53)
>         at java.lang.J9VMInternals.verify(J9VMInternals.java:53)
>         at java.lang.J9VMInternals.verify(J9VMInternals.java:53)
>         at java.lang.J9VMInternals.initialize(J9VMInternals.java:124)
>         at CommonsTest.main(CommonsTest.java:15)
>
> I am using JDK 1.5, Windows XP, and I've ensured that
> commons-configuration-1.2.jar is on my user classpath. What am I doing
> wrong? I am using similar code as in in the XML Configuration Howto.
>
> Thanks,
> Randy
>
> Randy Horwitz
> IBM Human Ability & Accessibility Center
> Internal: w3.ibm.com/able
> External: www.ibm.com/able
> Internet: rhorwitz@us.ibm.com
> Phone: (512) 838 8416
> Tie Line (internal to IBM): 678 8416
>
> "It is the easy things that damn you, not the hard."
> -- Joseph R Garber "Vertical Run"
>
>
>


--

To Iterate is Human, to Recurse, Divine
 - James O. Coplien, Bell Labs

-------------------------------------
<EPI/> - Deploying ideas
-------------------------------------
Ing. Diego H. Mornacco
Desarrollador
Epidata Consulting
MaipĂș 521 1er piso Of. A
Ofi: 5031 0060 / 61
Cel: 15-5884-0040
www.epidataconsulting.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message