Download the Java EE SDK if you don't have it already through NetBeans or GlassFish.
From this SDK, you will need the Java servlet API classes ( available in javaee.jar ) to compile the post-authentication module source code.
Set the Java home directory.
# export JAVA_HOME=/export/software/jdk1.6.0_14 # export PATH=$JAVA_HOME/bin:$PATH |
Set the Java classpath.
The following has been broken into multiple lines for readability purposes.
# export CLASSPATH=/opt/SUNWappserver91/lib/javaee.jar: /opt/SUNWappserver91/domains/opensso4idm/applications/ j2ee-modules/opensso/WEB-INF/lib/amserver.jar: /opt/SUNWappserver91/domains/opensso4idm/applications/ j2ee-modules/opensso/WEB-INF/lib/opensso-sharedlib.jar |
The jar files used in this example are:
javaee.jar
Available in the Java EE SDK or in your GlassFish / NetBeans installation.
amserver.jar
Available in the opensso.war.
opensso-sharedlib.jar
Available in the opensso.war.
Compile the source file.
# javac FirstTimeLogin.java |
The class file FirstTimeLogin.class is created in the current directory.