I have a program that sends a file from server to client in java. The program consists of two main folders "Server" and "Client" these folders are stored in a main "Project1" folder. The "Server" folder contains a Server.class file and "ServerFiles" folder which contains a .txt file. The "Client" folder contains a Client.class file and a "ClinetFiles" folder which contains nothing(this is where the server send the .txt file to). At the moment I am providing the whole path for both File folders.
My question is what should my path be so the the program works in any directory.
I tried ./Project1/Client for the client and ./Project1/Server/file.txt for the server
but these are not recognized