Hello once again
I have problem with class loading.
Given code:
1 ClassPool pool = ClassPool.getDefault(); 2 Loader cl = new Loader(pool); Class c = null; 3 try { 4 c = Class.forName(pClassName); 5 } catch (ClassNotFoundException e1) { 6 e1.printStackTrace(); 7 } 8 CtClass cc; 9 try { 10 log.debug(" Getting class: " + pClassName); 11 cc = pool.get(c.getName());
I guess the code above was loaded by a web app. server
like JBoss AS. Please take a look at "Class search path"
in Section 1 of the tutorial.