I want to specify the path dynamically. myapp/CopyFolder and myapp/RunFolder\'s are inside application like myapp/WEB-INF. The code I have given below is in .java file(in eclips
You can get the path value as below:
path
URL resource = getClass().getResource("/"); String path = resource.getPath();
This will return the absolute path to to your myApp/WEB-INF/classes directory.
myApp/WEB-INF/classes