This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes EasyConf NestableRuntimeException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "EasyConf NestableRuntimeException" Watch "EasyConf NestableRuntimeException" New topic

EasyConf NestableRuntimeException

Ravi kapa
Ranch Hand

Joined: Jan 05, 2012
Posts: 86
Hi All,iam using "EasyConf" for properties configuration i just tried to read and print the variable from the properties file and getting one runtime exception that is "NestableRunTimeException".Can anyone guide me what is wrong..i included all the necessary jars
those jars are
commons-configuration 1.1
commons-collections 3.1
commons-lang 2.0
dom4j 1.4
commons-logging 1.0.4
commons-digester 1.6
commons-beanutils (core and collections) 1.7.0...

i created file under src with the variable euro-to-dollars=1.2

my source code
import com.germinus.easyconf.ComponentConfiguration;
import com.germinus.easyconf.ComponentProperties;
import com.germinus.easyconf.EasyConf;

public class EasyCDemoEx{
public static void main(String[] args) {
final double EURO_TO_DOLLARS_RATIO = EasyConf.



Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at com.easy.demo.EasyConfDemo.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.intellij.rt.execution.application.AppMain.main(
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 18 more
Steve Luke

Joined: Jan 28, 2003
Posts: 4167

Looks like you didn't set your classpath correctly. You say you have the commons-lang JAR - that is where the NestableRuntimeException is located. So you may have downloaded it but it seams like you did not add it to the classpath correctly.

Also, make sure you have the correct version of commons-lang on the classpath. The latest version (3.x) uses the org.apache.commons.lang3 package instead of org.apache.commons.lang, and does not have a NestableRuntimeException. You need to use a 2.x version of the commons-lang JAR.

I agree. Here's the link:
subject: EasyConf NestableRuntimeException
Similar Threads
Package does not exist
Compiling a class which is dependent on other class
error java.lang.NoClassDefFoundError: javax/servlet/Servlet
IDE or bust?