I'm on a project and I encounter the following problem.
A part of the code has the following:
Path caminho2 = Paths.get("C:\Users\Evandro\Documents\Java\Player beta 0.9\src\Capas\Gifs".replace("\", "/"));
List<Path> listaCapas2;
System.out.println(listaImagem2.size());
try {
listaCapas2 = Files.list(caminho2).collect(Collectors.toList());
listaCapas2.forEach((capas2) -> {
listaImagem2.add(new Image(capas2.toFile().toURI().toString()));
});
addItem2(listaImagem2);
} catch (IOException ex) {
ex.printStackTrace();
}
I need this path to be for all computers, not just mine.
"Path path2 = Paths.get ("C: \ Users \ Evandro \ Documents \ Java \ Player Beta 0.9 \ src \ Layers \ Gifs ".replace (" \ "," / "));"