1 Reply Latest reply on Mar 11, 2011 5:08 PM by Ales Justin

    Obtain the classpath in JBOSS 6

    Tarek Hammoud Novice

      We in the process of migrating to JBOSS 6 and make use of the Java Compiler in the application server. In 4.x, we used to do obtain the class path by using this code:


      if (cl instanceof UnifiedClassLoader) {

                  UnifiedClassLoader ucl = (UnifiedClassLoader)cl;

                  for (URL url : ucl.getClasspath()) {






      In JBOSS 6, cl is now a BaseClassLoader. we have not found a way to obtain the same list from this class loader. We must be missing something very obvious. Any help will be greatly appreciated.


      Thank you,

      Tarek Hammoud