I use this code part to set file as attachment within a java class

FileDataSource fds = new FileDataSource("filePath")  ;      

setting a file path from my local computer (as a example C:/a.txt) is working fine on this code part to send a attachment.

Please sombody let me know how to give the path of file in actual server as String filePath. Thank you.