I'm one of those people who gets frustrated with the classpath in Java. I've tried a few things but nothing seems to be working.
I have a program which I need to run from a bat file and it uses an external library which I can't seem to specify in the bat file. The external library is in a jar and isn't in the same directory as the main class for the program I'm trying to run. I'm running the program from a bat file which is located one directory above the directory containing the main file for the program.
Can someone please tell me what arguments I need to specify in my bat file to be able to tell my program where the external library resides in absolute terms, please?
My current bat file to run the program is "java finances/FinancesStart"
Pulling my hair out in anticipation, thanks in advance.
I have a program which I need to run from a bat file and it uses an external library which I can't seem to specify in the bat file. The external library is in a jar and isn't in the same directory as the main class for the program I'm trying to run. I'm running the program from a bat file which is located one directory above the directory containing the main file for the program.
Can someone please tell me what arguments I need to specify in my bat file to be able to tell my program where the external library resides in absolute terms, please?
My current bat file to run the program is "java finances/FinancesStart"
Pulling my hair out in anticipation, thanks in advance.