• A Linux, Unix, BSD based operating system (one that uses .so for shared libraries)
  • PAM 0.7x
  • gcc
  • Maven 1
  • JDK 1.4 or 1.5

Building the Java sources

Use Maven to build the Java sources. For the samples just compiling the sources is enough: maven java:compile. When you integrate JAAS-PAM into your application you may find a JAR file more convenient: maven jar

Building the native library

The native library is written for the PAM 0.7 API. It will compile against PAM 0.77 for instance. maven native:compile will build the native library as target/native/ You must rename the library to though or make a symbolic link.

maven native:install will install it into your local Maven repository. From now on you can include the library as a dependeny in your Maven enabled projects:


Alternatively you can use make: Make sure to set the JAVA_HOME environment variable to the location of the JDK you would like to compile the native code for.

        cd src/unix/
        export JAVA_HOME=/opt/sun-jdk-

This will make a target/native/