There is a java tutorial out on the Perceptual Computing Download Site. This tutorial is in the SDK Documentation - look under "SDK Tutorials" and "My First Java Application"
You will need to install JDK 1.7.0_11 or later. Set the environment variable JAVA_HOME to point to the installation directory for easy reference.
1.Create a directory called Java1.
2.Launch any editor and enter the Java code Java1.java.
import intel.pcsdk.*;
import java.lang.System.*;
public class Java1 {
public static void main(String s[]) {
PXCUPipeline pp=new PXCUPipeline();
if (!pp.Init(PXCUPipeline.GESTURE)) {
System.out.print("Failed to initialize PXCUPipeline\n");
System.exit(3);
}
for (;;) {
if (!pp.AcquireFrame(true)) break;
PXCMGesture.GeoNode[] nodes=new PXCMGesture.GeoNode[5];
if (pp.QueryGeoNode(PXCMGesture.GeoNode.LABEL_BODY_HAND_PRIMARY,nodes))
System.out.print("GeoNode primary-palm ("+nodes[0].positionImage.x+","+nodes[0].positionImage.y+")\n");
pp.ReleaseFrame();
}
pp.Close();
System.exit(0);
}
}
3.Build and run the Java application:
"%JAVA_HOME%\bin\javac" -classpath PXCUPipeline.jar *.java
"%JAVA_HOME%\bin\java" -classpath PXCUPipeline.jar;. Java1
The Java application prints out palm position if detected.