Difference between revisions of "How to setup Eclipse/RAP"

From NetXMS Wiki
Jump to navigation Jump to search
Line 3: Line 3:
* Download Eclipse 4.2M5 from http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M1-201208101300/
* Download Eclipse 4.2M5 from http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M1-201208101300/
* Unpack and run
* Unpack and run
* Help -> Install New Software -> add new source "RAP Tooling" - http://download.eclipse.org/rt/rap/1.5/tooling
* Help -> Install New Software -> add new source "RAP 2.0 Tooling" - http://download.eclipse.org/rt/rap/tools/2.0
* Install "Rich Ajax Platrorm (RAP)" from that source
* Install "Rich Ajax Platrorm (RAP)" from that source
* Create directory somewhere on file system (I'll use /Users/alk/Documents/RAP)
* Create directory somewhere on file system (I'll use /Users/alk/Documents/RAP)
* Copy com.ibm.icu_4.4.2.v20110823.jar from Eclipse runtime to /Users/alk/Documents/RAP
* Copy com.ibm.icu_4.4.2.v20110823.jar from Eclipse runtime to /Users/alk/Documents/RAP
* Go to Window -> Preferences -> Plugin-in Development -> Target Platform, click "Add", initialize target definition with "Nothing"
* Go to Window -> Preferences -> Plugin-in Development -> Target Platform, click "Add", initialize target definition with "Nothing"
* Change name to something like 'RAP 1.5"
* Change name to something like 'RAP 2.0"
* (still in target content editor) Add software site http://download.eclipse.org/releases/juno, '''uncheck''' "Include Required Software" and install "EMF - Eclipse Modeling Framework SDK" (from Modeling)
* (still in target content editor) Add software site http://download.eclipse.org/releases/juno, '''uncheck''' "Include Required Software" and install "EMF - Eclipse Modeling Framework SDK" (from Modeling)
* Add software site http://download.eclipse.org/birt/update-site/2.6, '''uncheck''' "Include Required Software" and install "BIRT Chart Framework" (from BIRT 2.6 Charting SDK)
* Add software site http://download.eclipse.org/birt/update-site/2.6, '''uncheck''' "Include Required Software" and install "BIRT Chart Framework" (from BIRT 2.6 Charting SDK)
* Add software site http://download.eclipse.org/rt/rap/1.5/runtime, '''uncheck''' "Include Required Software" and install everything
* Add software site http://download.eclipse.org/rt/rap/2.0, '''uncheck''' "Include Required Software" and install everything
* Add software site http://download.eclipse.org/rt/rap/1.5/incubator, '''uncheck''' "Include Required Software" and install everything
* Add software site http://download.eclipse.org/rt/rap/1.5/incubator, '''uncheck''' "Include Required Software" and install everything
* Add directory /Users/alk/Documents/RAP
* Add directory /Users/alk/Documents/RAP

Revision as of 23:11, 13 December 2012

Eclipse and Target Platform setup

Is should be like this:

Error creating thumbnail: Unable to save thumbnail to destination
  • In trunk/src/java, run package.sh (or package.cmd on Windows)
  • Import existing projects from trunk/webui/webapp into workspace, it should build fine.

Run Configuration

  • Create new Run Configuration (of type "RAP Application")
  • Click "browse" and select Servlet Name (nxmc)
  • Click "browse" and select Entry Point (org.netxms.webui.core.nxmc)
  • Switch to "Bundles" tab, click on "Deselect All"
  • Add working set -> add your workspace with all WebUI projects
  • Filter for "http.jetty" and select "org.eclipse.equinox.http.jetty"
  • Filter for "design" and select "org.eclipse.rap.design.example"
  • Filter for "console" and select "org.eclipse.equinox.console"
  • Filter for "felix*shell" and select orf.apache.felix.gogo.shell
  • Clear filter field and click "Add Required Bundles"
  • Uncheck "com.ibm.icu.base" - only "com.ibm.icu" must be selected
  • Click on Validate
  • Apply and Run

If browser complains about too many redirects (seen that on Mac) - just refresh page.

WAR export

Possible fixes if Eclipse acting weird

  • Refresh sources
  • Clean and rebuild all
  • Repeat refresh / clean once more
  • Refresh platform (Preferences -> Target Platform -> (select it) -> Reload
  • Go to "Edit platform", select each Update site's URL and click on "Update"