Answer the question
In order to leave comments, you need to log in
How to run a program on a remote computer?
The problem is the following: the program works with an Excel file, the path is specified for the local computer where the program was developed. The assembly is normal, the manifests are all observed, the program is launched on the remote computer (it sees the main class), but the path to the Excel file is not visible and the program crashes. My question is how to solve this problem?
That is, how to specify the path so that I do not suffer (wild nonsense will begin now) recompile the program for a specific computer.
First experience with building Maven and running the program on a remote computer.
Answer the question
In order to leave comments, you need to log in
Either the program must somehow accept the path to the file from the user, or the file must be in the CLASSPATH and loaded as a resource using Class.getResource() .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question