0
I have a code that runs routines inside Linux servers and access using public keys. When the project is on my pc (development), everything works because in the code I specify the location of the key that is on my machine, however when generating a jar (package for store) and running on another computer, the program does not find this key.
I already put the key inside the src/meProject folder and made the reference to the file and locally it worked, but on another machine not.
I researched getresources but I still couldn’t.
I refer to the file as any string:
String privateKey = "Diretorio\id_dsa.ppk";
What would be the correct way to attach this key to my project so that it runs on any machine?