Is there a way to change the path of a file present in C folder in a java program and put it into tomcat apache server. This whole code is running on Eclipse IDE and a java program takes the path of a file which is present in C: of the local machine. Can I change that path and somehow store or re-direct that path from the Tomcat apache server.
We are running the code through tomcat apache server on the local machine, now we would like to implement CI/CD pipeline and host the code on rancher for which the code is hosted on gitlab first and then the pipeline starts. Is there a way I can change this path and store the file in tomcat apache server or re-direct the path of the file from the server. Or will the project face any problem when processing through the pipeline? I'm using eclipse as IDE. Any help is much appreciated.
private final static String Word2VecModelPath = "C:\\german.model";
// change this path