Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Apache ConfigurationFactory doesnt run (but compiles !!!!!!!)  RSS feed

 
Jorge Pinho
Greenhorn
Posts: 25
MySQL Database PHP Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am trying to code a configuration Factory using apache SF code.

This very simple code....
----
import org.apache.commons.configuration.*;
public class myApp {
public static void main(String[] args) {
ConfigurationFactory factory = new ConfigurationFactory();
System.out.println("Hello World !");
}
}
----

compiles OK, but when it runs....

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/configuration/ConfigurationFactory
at myApp.main(Debaser.java:4)


Thankx for any help !
 
Jorge Pinho
Greenhorn
Posts: 25
MySQL Database PHP Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works... I have to run with all the necessary classpath...


living and learning...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!