Java: Use jar library's from package manager in Linux.
- by jonescb
I'm trying to find the best way to use Java libraries that were installed by the package manager instead of just putting a copy into ${project.root}/lib
My distro, Gentoo, has a package for Java libraries like jdbc-postgresql.
It's installed to /usr/share/jdbc-postgresql/lib/jdbc-postgresql.jar
I assume that this path may be different in Ubuntu, Fedora, or Arch.
Is there any way to do like what C does? Where you just add a -lfoo, and the linker would find libfoo.so.
I'm using Ant 1.8.0 and Java 1.6.0_19.