Good morning!
I have a java 8 application running on Wildfly 8, I need to display images. The view works perfectly when the folder is local C: (Eclipse, CMD, and Service). I had to transfer the folder with the images to the network, I created the mapping. I ran several tests by Eclipse and starting Wildfly with Windows CMD, it worked perfectly. When I run the Wildfly service on Windows, the network folder is not found (can not find the files), any tips? It seems like a permission problem, but how can I start by starting Wildfly through Eclipse and Windows Command? It just does not work as a service ... Thanks in advance for the help.
Follow the code:
final File[] files = (new File(dirOrigem)).listFiles(new FilenameFilter() {
public boolean accept(File dir, String nome) {
return nome.contains(name);
}
});
ImagemAux imagemAux;
for (File arquivo: files) {
System.out.println("arquivo: " + arquivo);