mercredi 6 mai 2015

How to find web project path from Eclipse in Java file?

In this Java page I using in eclipse web project. Now I want get the project path in this Java file.

String path=System.getProperty("user.dir");
    String p=path+"\\"+"splittedfiles\\";
    System.out.println("path "+path);
    System.out.println("file path "+p);

I want just get the project path in this Java file. This is web project am using this java file in that.

Aucun commentaire:

Enregistrer un commentaire