I'm new to Java. I need to load model with file (x.bin) , i should put it in config.properties like that
PATH_TO_MODEL_FILE=/home/prog/workspace/My_Project/x.bin
I tried to write
1 Map conf;
2 String filepath=(String) conf.get("PATH_TO_MODEL_FILE");
3 jft.load(filepath); // this line for loading the data from .bin
//file and it take string means the path of the file
but got model file cannot be opening for loading
the file (x.bin) exists in the folder of the project and i should use .jar file this jar after using mvn package but when i packaged the file i didn't find it so i need to make project read it in a correct way except writing the path of the file directly
Another thing
I have two files except model.bin . The first is data.txt and second is result.txt . Those fiels are in the same path of model.bin . I put there paths in config.properties then used them in the code . My code in distributed mode read the two fiels except model.bin
I tried the solution of adding model.bin in jar file and i did it already but error still