Summary: Setting up your IDE to Work With GigaSpaces

Preparing your Development Environment


Follow these steps to prepare your development environment:

  • Ensure you have a JDK installed - you will need version 1.6 or higher, latest Java 1.6 is recommended.

Checking your JDK version

To check your installed Java version:

  1. Open a command line window.
  2. Run set JAVA_HOME
  3. A response similar to this suggests you have a JDK installed:
    JAVA_HOME=C:\jdk1.6
  4. To check the JDK version, run %JAVA_HOME%\bin\java -version
    A response like this from Java indicates you have a good JDK installed:
    java version "1.6.0_23"
    Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

    If your installed JDK version is lower then 1.5 or none is installed, see below on how to install one.

Installing a proper JDK (Java Development Kit)

Steps to run the application inside Eclipse IDE

  1. Start Eclipse. A Workspace Launcher Dialog appears.
  2. Write a new workspace name or select one of your existing workspaces, and click the OK button.
  3. To import the project, select File > Import ... to open the import dialog
  4. Select Existing projects into workspace and click Next to open the import project dialog
  5. In the Select root directory field click the Browse button to open the browse dialog
  6. Select the folder /examples/helloworld and click OK
  7. Make sure all 3 projects are selected: hello-common, hello-processor and hello-feeder
  8. Click Finish
  9. Create a new Eclipse environment variable called GS_HOME, and point it to your GigaSpaces installation Root folder
  1. Right Click on the hello-common project in the Package Explorer tab to open the context menu
  2. Select Build Path > Configure Build Path... to open the Java Build Path dialog
  3. Select the Libraries tab and click the Add Variable... button to open the New Variable Classpath Entry dialog
  4. Click the Configure Variables... button to open the Classpath Variables dialog
  5. Click the New... button to open the New Variable Entry dialog
  6. In the Name field write GS_HOME to name the variable
  7. Click the Folder... button and browse to your GigaSpaces installation root folder
  8. Select your GigaSpaces installation root folder and click OK
  9. Click OK and OK again
  10. Click Yes to do full rebuild
  11. Close remaining dialogs
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence