Packaging the application into several jar files and class methods
Question one: I am transferring an application I developed in C++ to Java. Is it possible, and is it a good Java practice, to pack the application in several jar files. Sort of like shared libraries under C/C++. I would like to develop some common classes put them in appropriate packages and then have them in separate jar files so more that one application can use them. To explain in windows terms for not Linux audience I would like to make something like a dll. I am using Java 6 and Eclipse to develop my applications. Is it possible to do what I want and if it is possible is it good Java practice to do so? If answer to these questions is yes is there some documentation on the net how to develop an Java project (projects) like this using Eclipse because I failed to find any.
Question two: I am using books Core Java volume I and volume II by Cay S. Horstmann and Gary Cornell to get into the Java world. On several occasions the authors are using something that appears to be a method named class. Like this example shows:
URL url = ResourceTest.class.getResource("about.gif");
This class method or what ever it is is appearing in lot of seemingly unrelated classes. I googled the net but failed to find what it is, what it does or any information about it.
Thanks in advance