Usage of tpm4java
tpm4java is not a standalone application. It is just an library you can use in your own applications. There are some sample applications in the Tutorial you can start with.
Compiling the source
Compiling the sourcecode is straight forward. Just unpack the tpm4java source distribution and type ant dist. If you don't have ant installed, you can download it from http://ant.apache.org/.
This will generated a subdirectory dist with all important files in it. You will need at least the tpm4java.jar file, and if you are running on windows, you will need the javaddl.dll file.
Running an application
To run your owne application you have to have the tpm4java.jar file in your classpath. For example, if your main method is in MyFirstApp.java, and you have compiled your sourcecode, you can start your application with:
java -cp tpm4java.jar:. MyFirstApp
When you are running on windows, you have to change the java.library.path property to point to the location of your javaddl.dll file. If javaddl.dll is in the current directory, you can start your application with:
java -cp tpm4java.jar:. -Djava.library.path=. MyFirstApp
