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

From NetXMS Wiki
Jump to navigation Jump to search
Line 5: Line 5:
* Help -> Install New Software -> add new source "RAP 2.1 Tooling" - http://download.eclipse.org/rt/rap/tools/2.1
* Help -> Install New Software -> add new source "RAP 2.1 Tooling" - http://download.eclipse.org/rt/rap/tools/2.1
* Install "Remote Application Platform (RAP)" from that source
* Install "Remote Application Platform (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 /home/zev/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 /home/zev/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 2.1"
* Change name to something like 'RAP 2.1"
Line 13: Line 13:
* Add software site http://download.eclipse.org/rt/rap/2.1, '''uncheck''' "Include Required Software" and install everything
* Add software site http://download.eclipse.org/rt/rap/2.1, '''uncheck''' "Include Required Software" and install everything
* Add software site http://download.eclipse.org/rt/rap/incubator/nightly, '''uncheck''' "Include Required Software" and install "RAP ClientScripting", "RAP File Upload Support", and "RAP GEF Port".
* Add software site http://download.eclipse.org/rt/rap/incubator/nightly, '''uncheck''' "Include Required Software" and install "RAP ClientScripting", "RAP File Upload Support", and "RAP GEF Port".
* Ass software site http://download.eclipse.org/rt/rap/incubator/2.1/fileupload, '''uncheck''' "Include Required Software" and install "Rich Ajax Platform (RAP) Incubator".
* Add software site http://download.eclipse.org/technology/babel/update-site/R0.11.0/indigo, '''uncheck''' "Include Required Software" and install "Babel Language Pack for eclipse" and "Babel Language Pack for rt.rap" (Chinese Simplified, Czech, German, Russian, Spanish).
* Add software site http://download.eclipse.org/technology/babel/update-site/R0.11.0/indigo, '''uncheck''' "Include Required Software" and install "Babel Language Pack for eclipse" and "Babel Language Pack for rt.rap" (Chinese Simplified, Czech, German, Russian, Spanish).
* Add directory /Users/alk/Documents/RAP
* Add directory /home/zev/RAP


Is should be like this:
Is should be like this:


[[File:rap_2_1_m1_target_platform.png]]
[[File:rap_2_1_m2_target_platform.png]]


* Install Apache maven from http://maven.apache.org/download.html
* Install Apache maven from http://maven.apache.org/download.html

Revision as of 12:53, 11 November 2013

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")
  • Enter "/nxmc" as servlet path
  • 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 "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"