CmsObject cmsObject = //... you need an instance of cms object, check the cmsshell.sh to get one List resources = cmsObject.getResourcesInFolder("folder_to_use", CmsResourceFilter.DEFAULT_FILES);