Netbeans - Jython/Python
Opening the Project
- Start by installing Netbeans with Java.
- Ensure that you have the Python plug-in for netbeans installed as well as Jython.
- Download the Netbeans Jython package and unzip it.
- You must open Netbeans using sudo to run Finch programs, or follow these instructions to make it so regular users can access the Finch (credit: Meg Richards).
- You will need to install libusb-1.0 before compiling a program. To do so, run sudo apt-get install libusb-1.0-0-dev in any terminal window.
3. Open Netbeans.
4. In Netbeans, go to File->Open Project, and then navigate to the SourceFiles directory.
5. Once the project is open, right click on the project name ("FinchJython") and select Properties.
6. In the Properties window, go to Python. Remove the currently listed path, and navigate to the finch.jar in the SourceFiles directory.
Mac/Linux Users: You must also add jnaerator-0.9.5.jar to the path. You can select both jars at the same time.
Linux Users: In the Project Properties->Python menu, select "Manage...". In the resulting "Python Platform Manager", set Jython 2.5.2 to Default, and under Main on the right-hand pane, change the Command Arguments from blank to:
7. Restart Netbeans to allow the project to load the jar.
Running an Example
1. Expand "Code" and double click on one of the example programs to open it in the editor.
2. Type Shift-F6 or go to Run->Run File to run the currently open file.
Create a File
1. Right-click on the "Code" package and select New->Module.