Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Download servicemix source distribution.
  2. Put in the Eclipse tags:
    maven -Dmaven.test.skip=true default eclipse
  3. In Eclipse:
    File>New>Project>Java Project>
    Enter the project name, whatever you want.
    Leave the default selections.

File>Import
Browse for the root directory, which is the directory in which you downloaded ServiceMix.

  1. Select all the files in the Import pop-up window. They are probably already pre-selected for you (check box is checked).
  2. Click Finish.
  3. Windows>Preferences
    The Preferences window will pop-up.
    Change to JDK 5
    Windows>preferences click on Compiler
    Compiler compliance level must be 5.0, pull down menu and select.
    Check the "Use default compliance settings" box.
    Then check under "Installed JREs" that you have JDK 5, e.g., jre_1.5.x
    Click Ok
  4. Click on the Java plus sign, then click on Build Path
    then select Classpath Variables.
  5. Click on New button to right
    A pop-up appears.
    Enter the Name: MAVEN_REPO
    Enter the Path, which is your local maven repository, usually located in
    your home directory .maven, for example:
    C:\Documents and Settings\Lisa Malgeri\.maven\repository
  6. Now you can run an example:
    a. In the Package Explorer find the Main class, which should be located in: servicemix-core/src/main/java/
    under org.apache.servicemix/Main.java.
    Double click on the main() class.
  7. From the Run menu select "Run..."
  8. You will get a Run window pop-up, from there select Java Application
  9. Click on New button in botton left
    Name the Project: any name you like, for example if you want to run the FilePoller application call it "filepoller".
  10. Click on arguments button:
    #In the Program Arguments box enter servicemix.xml
    #In the Working Directory enter the path of your example. Such as:
    C:\Program Files\servicemix-1.0.1\examples\file-binding
    You can use the "File System..." button to browse for your directory.
  11. Click Apply.
  12. Click Run