String cp = System.getProperty("java.class.path");
cp=cp.replace(";.;","");
System.out.println("Before >>>>>>>>>>>>>>>>"+cp);
String newcp = cp + System.getProperty("path.separator") + "C:/user/igst/client/log4j.jar;.;";
System.setProperty("java.class.path", newcp);
System.out.println("After>>>>>>>>>>>>>>>>"+System.getProperty("java.class.path"));
this Code for i used but the Run time Error the
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: org/apache/log4j/Layout