How find path of java archive file

Hi,

I install the jdbc driver : nixos.postgresql_jdbc .
I need to declare in file the classpath of the archive file.

How find the path on these files?

Regards.
Pierre

Try something like what I suggested here: Always symlinking the latest "jdk" to a certain path - #4 by Jerith.

That is:

environment.etc.posgresql_jdbc.source = pkgs.postgresql_jdbc;
1 Like

These java packages are mostly to use in building of other derivations, where one just include pkgs.postgresql_jdbc to buildInputs and all jars appear on classpath magically.

For downloading jars to a certain location it might be better to install coursier
and then run coursier fetch org.postgresql:postgresql:42.2.6