private static String getLibraries(File path) throws Exception {
        String libraries = "";        
        File[] files = path.listFiles();
        if (files.length == 0) {
            return "";
        }
        for(int i = 0; i < files.length; i++) {
            if(files[i].isDirectory()) {
                String slibraries = getLibraries(new File(path+File.separator+files[i].getName()));
                if (libraries.isEmpty()) {
                    libraries = slibraries;
                } else {
                    libraries = libraries + ";" + slibraries;
                }
            }
            if(files[i].isFile()) {
                if (libraries.isEmpty()) {
                    libraries = files[i].getAbsolutePath();
                } else {
                    libraries = libraries + ";" + files[i].getAbsolutePath();
                }                
            }
        }
        return libraries;
    }