I have a simple code like so, which imports a single class
and I can compile it like so (hopefully the references to a typical Unix
maven repository will be familiar enough to everyone)
where I link to the jar. But, when I run it something interesting happens. The following command, with jar followed by local directory dot, runs:
with the output
which is correct. However this same command, with the dir dot and the jar path switched:
throws the following error:
In otherwords, I think
java is "giving up" after the dot and not looking for the jar for some reason. Is this expected behavior? Is there a principle here I need to understand?