I have a small Java project built with the jGRASP IDE on Windows, with all the files in a single flat directory. Among them is an external jar file: pdfbox-app.jar. Compilation and access to that library succeeds if I add the file to the project CLASSPATH with an absolute address.
But the project build then breaks if this is distributed to other people (via GitHub) and they put the code in any different directory structure. So it would be preferred to provide a relative address on the CLASSPATH. However,nothing I've tried to add in that vein reliably succeeds. Things I've tried to add to the project classpath:
pdfbox-app.jar
\pdfbox-app.jar
.\pdfbox-app.jar
%<PROJECT_PATH>\pdfbox-app.jar
I've also tried to add command-line compile arguments:
-cp ".;.\pdfbox-app.jar"
What would work here for a relative-address inclusion on the jGRASP project CLASSPATH?