commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: Using apache.commons.cli with Java 1.4.2
Date Mon, 15 Jun 2009 14:25:51 GMT
esharris wrote at Mittwoch, 10. Juni 2009 15:39:

> 
> I'm having difficulty using apache.commons.cli with Java 1.4.2. I used
> Eclipse to develop a simple program that uses apache.commons.cli. The
> program works within the Eclipse IDE. However, when I export the program
> as a Jar file and try to run the Jar from the command line (DOS or Unix).
> I get a NoClassDefFoundErrorerror wrt the CommandLineParser. (In another
> program
> that uses apache.commons.cli, running the jar file triggers  the
> NoClassDefFoundErrorwrt HelpFormatter. So, I think java punts on the first
> class it sees containing a problem.)

What version of commons-cli are you using?
 
> I also extracted the apache.commons.cli source and built a Jar from it.
> Strangely, I couldn't compile my program using my cli jar, instead on the
> standard jar. When I extract classes from my cli jar, I noticed some of
> the classes in apache.commons.cli are absent. I don't see anything
> peculiar in the source.
 
What means "extracted the apache.commons.cli source"?

- Jörg


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


Mime
View raw message