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

257 bytes removed ,  18:13, 13 September 2022
m
Text replacement - "^" to "{{deprecated}}"
(Draw2D link removed)
m (Text replacement - "^" to "{{deprecated}}")
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Eclipse and Target Platform setup =
{{deprecated}}= Eclipse and Target Platform setup =


* Download Eclipse 4.2 SR2 from http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/junosr2
* Download Eclipse 4.15 (2020-03) for RCP and RAP Developers from https://www.eclipse.org/downloads/eclipse-packages/
* Unpack and run
* Unpack and run
* Help -> Install New Software -> add new source "RAP 2.2 Tooling" - http://download.eclipse.org/rt/rap/tools/2.2
* Install "Remote Application Platform (RAP)" from that source
* 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 /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.2"
* Change name to something like 'RAP 3.12"
* (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/2019-06, '''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/releases/indigo, '''uncheck''' "Include Required Software" and install "BIRT Framework" (from Business Intelligence, Reporting and Charting)
* Add software site http://download.eclipse.org/rt/rap/3.12, '''uncheck''' "Include Required Software" and install everything
* Add software site http://download.eclipse.org/rt/rap/2.2, '''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" and "RAP File Upload Support"
* 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://download.eclipse.org/technology/babel/update-site/R0.11.1/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/tools/orbit/downloads/drops/R20170919201930/repository, '''uncheck''' "Include Required Software" and install "ICU4J" and "Apache Commons Codec 1.9.0"
* Add directory /home/zev/RAP
* Add software site http://download.eclipse.org/technology/babel/update-site/R0.17.1/2019-12/, '''uncheck''' "Include Required Software" and install "Babel Language Pack for eclipse" and "Babel Language Pack for modeling.emf" (Arabic, Czech, French, German, Portuguese, Portuguese (Brazilian), Russian, Spanish)


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


[[File:rap_2_2_rc1_target_platform.png]]
[[File:RAP 3.12 Target Platform.png|724px]]


* Install Apache maven from http://maven.apache.org/download.html
* Import existing project from src/java-common 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 =
Line 44: Line 38:


= WAR export =
= WAR export =
* From http://download.eclipsesource.com/~hstaudacher/warproducts/3.7/ software site install "WAR Products (Incubator)"
 
* Open "nxmc.warproduct" and click on "Export"
Use Apache Maven:
 
# updates versions in pom files
mvn -f webui/webapp/pom.xml -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:update-pom -Pweb
# build console
mvn -f webui/webapp/pom.xml clean package -Pweb -Dtycho.disableP2Mirrors=true
 
Build will be in webui/webapp/Product/target
 


= Possible fixes if Eclipse acting weird =
= Possible fixes if Eclipse acting weird =