Java: Use jar library's from package manager in Linux.
Posted
by jonescb
on Stack Overflow
See other posts from Stack Overflow
or by jonescb
Published on 2010-03-31T01:42:21Z
Indexed on
2010/03/31
2:13 UTC
Read the original article
Hit count: 356
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.
© Stack Overflow or respective owner