Set-Up to Develop Apps for the Panasonic Radio

These set-up instructions are designed to help you set-up a development environment for the Panasonic VP4R radio. All of the apps created in set-up are tested using the emulator and simulator. To install and test an app on a VP4R radio see Bench Tester.

Set-up steps:

  1. Download and install Eclipse version 4.4.0 or higher (version needs to support java 8). These instructions use Mars 4.5.1.
  2. Download and install JDK 1.8.
  3. Complete the instructions on this page which will set-up and test the Eclipse plugin and emulator.
  4. (Optional) Install and test the Kona Emulator and Sensor Simulator.

Get JamaicaCAR SDK and Eclipse Plugin

The JamaicaCAR SDK contains an Emulator, Codename One designer, and documentation. The Eclipse Plugin allows JaimacaCAR Xlet project class and project with GUI Builder. The apps that are shown in this instruction were developed using JamaicaCAR_SDK_2.7.1dev_83_windows-x86-java8-compact2 and Eclipse plugin JamaicaCAR Tools 2.1.0.20161028.

  1. The JamaicaCAR SDK and the Eclipse plugin can be downloded from Aicas at jamaicacar-sdk-download.
  2. After the files are downloaded unzip them to a location on your hard drive.

Install JamaicaCAR Tools in Eclipse

  1. Go to Help > Install New Software
  2. Add the directory "jamaicacar-update-site" as a local software site to Eclipse. Select the location of the unzipped JamaicaCAR Tools.

     

  3. Select "JamaicaCAR Tools" from that software site.

     

  4. Go to "Window > Preferences > Java > Installed JREs" and add a new "JamaicaCAR Emulator" with JRE home directory set to the location of the unzipped JamaicaCAR SDK.

     

     

Top

Create a Hello World Xlet

The Hello World Xlet is a simple xlet that writes "Hello World" to the system console. Its only purpose really is to ensure that your set-up is complete.

  1. Create an Xlet project from the eclipse menu by selecting “File > New > Other..” and choose “JamaicaCAR Xlet Project”. Then press “next”.
  2. Enter the project name and ensure that the JamaicaCAR SDK is selected for the JRE. Then press‘Finish’.

     

  3. The new project should now appear in the left project window.

     

  4. Now that you have a new Xlet project the next step is to create the Xlet class. From the menu select “File > New > Other” and choose‘JamaicaCAR Xlet Class’. Then press “Next”.
  5. Enter the package name and the class name and press “Finish”. This will create a basic Xlet class.

     

  6. Modify the startXlet method adding your 'Hello Wrold’ statement. Save the file, this will automatically build the program.
      /**
    	   * Signals the Xlet to start providing service and enter the Active state.
    	   * In the Active state the Xlet may hold shared resources.
    	   * The method will only be called when the Xlet is in the paused state.
    	   */
    	  public void startXlet() throws XletStateChangeException
    	  {
    	   System.out.println("Hello World");
    	  }
    		 
  7. Modify xlet.properties to show the main class and package.

     

  8. Create a new JamaicaCAR Xlet Run configuration.

     

  9. Select "run" and execute your configuration. You should see the JamaicaCAR Emulator. As your app does not use Codename One to display anything the emulator is blank.

     

  10. In the Eclipse console you see your text "Hello World".

     

Top