Greetings. I have a threefold question. Technically, I have one problem, but I would like an explanation as to how java mechanics work as related to libraries.
It seems to me that most such questions are how to make something work, but not why it works. But in this case, you do not learn how it works, either, and I would like to know this, not just a quick fix.
My first question is this: many libraries are either in whole or in part, a jar, or several jars. As I understand it, you set the classpath, not to the directory the jar is in, but the jar itself. IS this accurate, and if so, why? (mechanics of class loading, if possible). Is this because a .jar is essentially a folder (albeit zipped), and so this is accurate in terms of file structure?
Second, external dependancies. Those libraries need to use DLLs. I don’t need to know how JNI/JNA works at this time, but I am unsure what needs to be done in terms of adding these to classpath or other build paths. What do you do and why?
Finally - I am trying to use Slick2D. I have a classpath set for the jar, and no errors come from there, but I got errors from LWJGL. I linked to those jars, and not get another error,
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
How do I fix this, and why?