| BlueSpray - Help © SchoonerTurtles, Inc. 2012-2015
Introduction
Contents
Getting Started
Download
Navigating
Tutorials
Scripting
Advanced
About
| # Creating a new Extension in NetBeans The following instructions will show you how you can create a new extension for BlueSpray in NetBeans. This will allow you to debug the extension using NetBeans source code debugger and other tools. Click on “File” and select “New Project…” Select “Java” as the category and “Java Application” as the project. Click “Next” Give the project an appropriate name. After “Create Main Class” put in one of the following names followed by the class name for the main class. This will become the name of the package which BlueSpray will use to find the extension: - “com.SchoonerTurtles.PointExtension.” - “com.SchoonerTurtles.VectorExtension.” - “com.SchoonerTurtles.RasterExtension.” Click “Finish” Right click on the project and select “Properties…” Click on the “Run” category Enter the following line into the “VM Options:” -Djava.security.policy=applet.policy -Djava.library.path=C:\ProjectsJava\BlueSpray\STLibraries -Xms500m -Xmx2000m Open your new class and insert the following code at the bottom: public static void main(String[] args) { STBlueSprayApp.main(null); } Right click on “Libraries” and select “Add JAR/Folder”. Navigate to the BlueSpray folder and select the BlueSpray.jar file. Make sure “Relative Path” or “Absolute Path” is selected and click “Open”. Right click on “Libraries” and select “Add JAR/Folder” again. Navigate to the “lib” folder in the same folder as the BlueSpray.jar file. Select all the jar files in the folder by clicking on the first file, holding down the “shift” key, and clicking on the last file. Make sure the “Relative” or “Absolute” paths are selected and click Open. You have now added the entire BlueSpray application to your project. Start overriding the appropriate functions to implement the new BlueSpray Extension. #