|
|
Line 1: |
Line 1: |
| [[Category:Language]]{{NoTitle}} | | #REDIRECT [[Language - Java]] |
| {|
| |
| |style="vertical-align:middle; width: 60%;"|
| |
| <font size=6>'''Language - Java'''
| |
| | |
| '''MacOS with NetBeans'''</font>
| |
| | |
| Welcome to using Phidgets with Java! By using Java, you will have access to the complete Phidget22 API, including events.
| |
| | |
| NetBeans is an IDE used to write, compile, and run Java applications.
| |
| |{{TOC limit|2}}
| |
| |}
| |
| | |
| {{Language_-_Java_Intro|macOS|NetBeans}}
| |
| #You will need a copy of [{{SERVER}}/downloads/phidget22/libraries/any/Phidget22Java.zip phidget22.jar]
| |
| | |
| {{Finding Code Samples|Java}}
| |
| | |
| ==Setting up a New Project==
| |
| When you are building a project from scratch, or adding Phidget functionality to an existing project, you'll need to configure your development environment to properly link the Phidget Java library.
| |
| | |
| To start, open NetBeans and create a new project. Select ''Java Application'' then click ''Next >'':
| |
| [[Image:Java_netbeans_mac_newproject.png|link=|center]]
| |
| | |
| | |
| Give your project a name and finish creating the project:
| |
| [[Image:Java_netbeans_mac_nameproject.png|link=|center]]
| |
| | |
| | |
| Next, add a reference to the phidget22.jar you downloaded above by right-clicking on the libraries folder:
| |
| [[Image:Java_netbeans_mac_new_project_addjar.png|link=|center]]
| |
| | |
| | |
| The project now has access to Phidgets.
| |
| | |
| {{Using the Code Samples|Java|MacOS|NetBeans}}
| |
| | |
| {{Language Page What's Next}}
| |