Difference between revisions of "How to setup Eclipse/RAP"
Jump to navigation
Jump to search
Tags: Mobile web edit Mobile edit |
|||
Line 1: | Line 1: | ||
= Eclipse and Target Platform setup = | = Eclipse and Target Platform setup = | ||
* Download Eclipse 4. | * Download Eclipse 4.5 (Oxygen) from http://www.eclipse.org | ||
* Unpack and run | * Unpack and run | ||
* Help -> Install New Software -> add new source "RAP 3. | * Help -> Install New Software -> add new source "RAP 3.4 Tooling" - http://download.eclipse.org/rt/rap/tools/3.4 | ||
* Install "Remote Application Platform (RAP)" from that source | * Install "Remote Application Platform (RAP)" from that source | ||
* 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 3. | * Change name to something like 'RAP 3.4" | ||
* (still in target content editor) Add software site http://download.eclipse.org/releases/ | * (still in target content editor) Add software site http://download.eclipse.org/releases/oxygen, '''uncheck''' "Include Required Software" and install "EMF - Eclipse Modeling Framework SDK" (from Modeling) and "BIRT Framework" (from Business Intelligence, Reporting and Charting) | ||
* Add software site http://download.eclipse.org/rt/rap/3. | * Add software site http://download.eclipse.org/rt/rap/3.4, '''uncheck''' "Include Required Software" and install everything | ||
* Add software site http://www.netxms.org/eclipse/zest-rap/, '''uncheck''' "Include Required Software" and install everything | * Add software site http://www.netxms.org/eclipse/zest-rap/, '''uncheck''' "Include Required Software" and install everything | ||
* Add software site http:// | * Add software site http://download.eclipse.org/technology/babel/update-site/R0.15.0/oxygen/, '''uncheck''' "Include Required Software" and install "Babel Language Pack for eclipse" and "Babel Language Pack for rt.rap" (Chinese Simplified, Czech, French, German, Portuguese, Russian, Spanish) | ||
* Add directory /Eclipse/RAP | * Add directory /Eclipse/RAP | ||
Revision as of 23:37, 22 January 2018
Eclipse and Target Platform setup
- Download Eclipse 4.5 (Oxygen) from http://www.eclipse.org
- Unpack and run
- Help -> Install New Software -> add new source "RAP 3.4 Tooling" - http://download.eclipse.org/rt/rap/tools/3.4
- Install "Remote Application Platform (RAP)" from that source
- Go to Window -> Preferences -> Plugin-in Development -> Target Platform, click "Add", initialize target definition with "Nothing"
- Change name to something like 'RAP 3.4"
- (still in target content editor) Add software site http://download.eclipse.org/releases/oxygen, uncheck "Include Required Software" and install "EMF - Eclipse Modeling Framework SDK" (from Modeling) and "BIRT Framework" (from Business Intelligence, Reporting and Charting)
- Add software site http://download.eclipse.org/rt/rap/3.4, uncheck "Include Required Software" and install everything
- Add software site http://www.netxms.org/eclipse/zest-rap/, uncheck "Include Required Software" and install everything
- Add software site http://download.eclipse.org/technology/babel/update-site/R0.15.0/oxygen/, uncheck "Include Required Software" and install "Babel Language Pack for eclipse" and "Babel Language Pack for rt.rap" (Chinese Simplified, Czech, French, German, Portuguese, Russian, Spanish)
- Add directory /Eclipse/RAP
Is should be like this:
Error creating thumbnail: Unable to save thumbnail to destination
- Install Apache maven from http://maven.apache.org/download.html
- In trunk/src/java, run package.sh (or package.cmd on Windows)
- Import existing projects from trunk/webui/webapp into workspace
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 org.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
- From http://download.eclipse.org/libra/releases software site install "WAR Products (Incubator)"
- Open "nxmc.warproduct" and click on "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"