Hello! I need help. I have some icons in jar, How can i get to access for list of them?? I need to insert a list of the names of these files in lookUpField
Just extract then from jar or provide more information about your case.
This problem exists only on Windows Server. I tried using File, Files, InputStream, but nothing works. I get NullPointerException.
Everything is fine on Linux and localhost. There I use File.
path="…/webapps/app/VAADIN/icons/"
File dir = new File(path);
File[] list = dir.listFiles();
List filesList = Arrays.stream(list).map(File::getName).collect(Collectors.toList());