I'm transitioning a Java project from Eclipse on Windows to Eclipse on Ubuntu. I have installed the Jama library and found that Ubuntu placed it in /usr/share/java . Now I am trying to make Eclipse find it there. I have read various posts on this subject (on Stackoverflow and elsewhere) and have tried the following:
added the line -Djava.library.path=/usr/share/java/ to the file /etc/eclipse.ini
added the directory /usr/share/java through the project Properties > Build Path > Libraries > Native library location
Neither of these worked. Please note that I want to add /usr/share/java just once and not have to add it to every project or import the .jars to each project. (I'm not sure if the 2nd approach, had it worked, would have affected ALL projects or just the current one.) Also there are a lot of .jar files in the /usr/share/java directory, so I was hoping that one configuration change would handle them all.
As a secondary question from a Java newbie, I'm a little confused about the capitalization used in import statements. All the Jama examples show import Jama.*; and the uppercase "Jama" worked on Windows, but I'm confused by the fact that the file is named jama.jar . How does the compiler know to look for a lower case file name? (I tried both cases, but the library is just not being found.)