Hi,
I would want to ask you, how to compile a NetXMS Management Console in Eclipse Indigo under Windows7. I've tried to experiment with Eclipse (it is a new IDE for me), but I didn't succeed. I tried to set the Eclipse Indigo according to
https://www.netxms.org/forum/installation/eclipse-junos-rcp-compile-problems-netxms-console/msg9001/#msg9001 (https://www.netxms.org/forum/installation/eclipse-junos-rcp-compile-problems-netxms-console/msg9001/#msg9001)
but I couldn't run the console because of missing packages (org.netxms.api..., org.netxms.client...).
Please, could you give me a hint how to get sources of the console into the Eclipse and compile it?
Is "Import / Existing Projects into Workspace" a good way?
Finally, I found out how to compile the NetXMS 1.2.6 desktop console and here is a guide for compiling it on Windows7:
- Download NetXMS sources from SVN
- Source package in "Download" section of an official site does not contain sources of the console, so use the SVN (for more info see https://www.netxms.org/forum/general/management-console-sources/)
- SVN repository address: https://svn.netxms.org/public/netxms/tags/version-1.2.6
- For example Tortoise (http://tortoisesvn.net/) can be used for downloading these sources
- Install Maven
- Download Maven from http://maven.apache.org/download.cgi
- Insttall Maven according to README.txt (extract downloaded archive, set environment variables PATH and JAVA_HOME)
- Run "mvn --version" to verify that Maven is correctly installed
- Run version-1.2.6/src/java/package.cmd
- For more info see https://www.netxms.org/forum/general-support/how-can-i-rebuild-the-new-java-console-from-scratchby-the-java-source-code/msg5207/#msg5207
- Install and configure Eclipse
- Download Eclipse Indigo 3.7 (this version is recommended at https://www.netxms.org/forum/installation/eclipse-junos-rcp-compile-problems-netxms-console/msg9001/#msg9001) for RCP and RAP Developers from http://www.eclipse.org/downloads/packages/release/indigo/sr2
- Install plugins enumerated in a file version-1.2.6/src/java/eclipse_addons.txt. These plugins must be installed using a wizard in "Help->Install New Software" (see https://www.netxms.org/forum/windows/compilation-error-with-java-manage-console/msg9513/#msg9513)
- Import projects from following folders to Eclipse using a wizard "File->Import->General->Existing Projects into Workspace":
- version-1.2.6/src/java/netxms-eclipse
- src/java/nebula/org.netxms.nebula.widgets.gallery (see https://www.netxms.org/forum/general/compiling-problem(missing-jar)/msg5261/#msg5261)
- Run console directly from Eclipse (for quick testing)
- Right-click on nxmc.product under nxmc-core project and select "Run As->Eclipse Application"
- Create executable binary
- Right-click on nxmc.product under nxmc-core project and select "Export"
- In an export dialog, select "Eclipse product", press Next, and follow the wizard
- for more see https://www.netxms.org/forum/general-support/how-can-i-rebuild-the-new-java-console-from-scratchby-the-java-source-code/msg5207/#msg5207