This question already has an answer here:
- Java File Path Windows/Linux 4 answers
I have the java web app.That is run on window server .It is ok. Now I change my web app to Linux tomcat server.Now any file path can not read .In my java code is look like " filePath += "\assetAssignment\";" .But it is work when I change my code to "filePath += "/assetAssignment/" .I have to change a lot of code if I want to use Linux server.Please help me another way.I also try to change Linux's tomcat JVM version to 8 and also change my Eclipse compiler version 7 to 8.But It is not work.Please help me how to read the file on path Linux server with java.
Aucun commentaire:
Enregistrer un commentaire