(1) The official documentation says it must be jdk6,jdk7, and I tried it. JDK8 is also possible.
(2) I am using the Eclipse Java Development environment under the Windows system. There is no longer much to say here. Copy the Java.dll and LeapJava.dll files from the downloaded JDK into the bin directory under the JRE installation directory (the Java Virtual machine and the LeapMotion controller Exchange data against two library files) as shown in:
Note that you need to distinguish between a 32-bit system or a 64-bit system and use the appropriate file
(3) Download the latest SDK and leapmotion software driver service software to import the jar package from the JDK in the project directory of Eclipse
(4) According to the Sample.java provided by the official website provides a monitoring mechanism to receive the sensor data. Through the implementation of the listener interface object can be used inside there are many callback methods, when the sensor and the program after the connection is successful if the hand moves on the sensor, the sensor detects the hands, it will callback the Onframe () method, through the Onframe () callback inside the frame frame = Controller.frame (); A Frame object can be obtained by means of other gestures, bones, and other objects of frame. How to use these objects is described in the next article.
LeapMotion Controller Java Language Development notes-(Preparation of Java development environment)