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

From NetXMS Wiki
Jump to navigation Jump to search
Line 17: Line 17:
[[File:RAP 3.4 Target Platform.png]]
[[File:RAP 3.4 Target Platform.png]]


* Install Apache maven from http://maven.apache.org/download.html
* Import existing project from src/libnxjava/java/base into workspace


* In trunk/src/java, run package.sh (or package.cmd on Windows)
* Import existing project from src/client/java into workspace


* Import existing projects from trunk/webui/webapp into workspace
* Import existing projects from webui/webapp into workspace


= Run Configuration =
= Run Configuration =

Revision as of 17:51, 27 March 2018

Eclipse and Target Platform setup

Is should be like this:

Error creating thumbnail: Unable to save thumbnail to destination
  • Import existing project from src/libnxjava/java/base into workspace
  • Import existing project from src/client/java into workspace
  • Import existing projects from 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

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"