jriaffe - Building Applications with the Jriaffe SDK    

 

This section tells you how to develop applications with the Jriaffe framework using a Java IDE.  The examples in this section use the Netbeans IDE, but all Java IDE’s that allow you to create libraries and configure Java applications should work.  This section is not about developing for the framework.  To read documentation on how to develop for the framework see the developer page.


Netbeans 6.x Setup

Writing Jriaffe applications in the Netbeans IDE is fairly easy to set up.  Here are the steps.


  1. 1.Download the jriaffeSdk.zip and unpack it on your hard drive.

  2. 2.In Netbeans create a library that contains all of the jar files from the jriaffeSdk.zip. To create the library in Netbeans select the Tools->Library menu.  In the “Library Manager” window select the “New Library” button.  Enter the name jriaffeSdk and then click the “Add JAR/Folder...” button.  Select all of the jar files from the jriaffeSdk directory from step one.

  3. 3.In Netbeans select File->New Project.  Select a Java->Java Class Library project.   Select next and set the name and location of your project.

  4. 4.Select the “Files” tab in Netbeans and create a directory call config.

  5. 5.In the config directory create a application.nba file.  See the Quick Start documentation for a good description of the nba file.

  6. 6.Create a class for you main panel.  This class should extend JPanel.

  7. 7.In the application.nba file set the application-desc main-class to the fully qualified class name of you main JPanel.

  8. 8.Build the application.

  9. 9.Right click on the project and select Properties from the popup menu. 

  10. 10.On the “Project Properties” popup select Libraries and add the jriaffeSdk library that you created in step two.

  11. 11.On the Run tab (still on Project Properties popup) set the Main Class to jriaffe.launcher.Main.

  12. 12.In the Arguments text add the following arguments “config  <path to jriaffeSdk>/jriaffeClient.jar”

  13. 13.Create a directory called "logs" in the config directory.

  14. 14.Run the application.