To compile a Java PAPI program from the command line you need to have a Java SE Development Kit 5 (JDK 5) installed. You can download the JDK from Sun Developer Network. You may also use the JDK bundled with some installations of Oracle BPM Enterprise, which gets installed under BEA_HOME/albpm6.0/enterprise/jre/.
PAPI classes are contained in the fuegopapi-client.jar JAR file, which is distributed with Oracle BPM Enterprise under BEA_HOME/albpm6.0/enterprise/client/papi/lib/fuegopapi-client.jar.
A file with the extension .class is generated in the directory where you compiled your program.