LeapMotion Controller Java Language Development notes-(Preparation of Java development environment)

Source: Internet
Author: User

(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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.